60 #include "utils/fmgrprotos.h"
63 #ifdef STRESS_SORT_INT_MIN
64 #define A_LESS_THAN_B INT_MIN
65 #define A_GREATER_THAN_B INT_MAX
67 #define A_LESS_THAN_B (-1)
68 #define A_GREATER_THAN_B 1
96 return (
int)
a - (int)
b;
166 #if SIZEOF_DATUM >= 8
303 if (
a->dim1 !=
b->dim1)
306 for (
i = 0;
i <
a->dim1;
i++)
308 if (
a->values[
i] !=
b->values[
i])
310 if (
a->values[
i] >
b->values[
i])
#define PG_GETARG_CHAR(n)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_INT64(n)
#define PG_RETURN_INT32(x)
#define PG_GETARG_INT32(n)
#define PG_GETARG_BOOL(n)
#define PG_GETARG_INT16(n)
Datum btoidvectorcmp(PG_FUNCTION_ARGS)
Datum btint4cmp(PG_FUNCTION_ARGS)
Datum btboolcmp(PG_FUNCTION_ARGS)
Datum btint2cmp(PG_FUNCTION_ARGS)
Datum btint24cmp(PG_FUNCTION_ARGS)
Datum btoidcmp(PG_FUNCTION_ARGS)
static int btint2fastcmp(Datum x, Datum y, SortSupport ssup)
Datum btint84cmp(PG_FUNCTION_ARGS)
Datum btoidsortsupport(PG_FUNCTION_ARGS)
Datum btcharcmp(PG_FUNCTION_ARGS)
static int btoidfastcmp(Datum x, Datum y, SortSupport ssup)
static int btint8fastcmp(Datum x, Datum y, SortSupport ssup)
Datum btint8sortsupport(PG_FUNCTION_ARGS)
Datum btint82cmp(PG_FUNCTION_ARGS)
Datum btint48cmp(PG_FUNCTION_ARGS)
Datum btint8cmp(PG_FUNCTION_ARGS)
Datum btint4sortsupport(PG_FUNCTION_ARGS)
Datum btint42cmp(PG_FUNCTION_ARGS)
Datum btint28cmp(PG_FUNCTION_ARGS)
Datum btint2sortsupport(PG_FUNCTION_ARGS)
static int64 DatumGetInt64(Datum X)
static Oid DatumGetObjectId(Datum X)
static int16 DatumGetInt16(Datum X)
struct SortSupportData * SortSupport
int(* comparator)(Datum x, Datum y, SortSupport ssup)
int ssup_datum_int32_cmp(Datum x, Datum y, SortSupport ssup)