9 #include "utils/fmgrprotos.h"
254 &
tinfo, fcinfo->flinfo));
265 &
tinfo, fcinfo->flinfo);
289 &
tinfo, fcinfo->flinfo));
Datum gbt_text_same(PG_FUNCTION_ARGS)
PG_FUNCTION_INFO_V1(gbt_text_compress)
static bool gbt_bpcharge(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
Datum gbt_bpchar_consistent(PG_FUNCTION_ARGS)
static int32 gbt_bpcharcmp(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
static bool gbt_textlt(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
static bool gbt_textge(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
Datum gbt_text_picksplit(PG_FUNCTION_ARGS)
Datum gbt_text_compress(PG_FUNCTION_ARGS)
static bool gbt_bpchareq(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
static gbtree_vinfo tinfo
static int32 gbt_textcmp(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
static bool gbt_bpcharle(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
Datum gbt_text_penalty(PG_FUNCTION_ARGS)
static bool gbt_bpcharlt(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
Datum gbt_text_consistent(PG_FUNCTION_ARGS)
Datum gbt_bpchar_compress(PG_FUNCTION_ARGS)
static gbtree_vinfo bptinfo
static bool gbt_texteq(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
static bool gbt_textle(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
static bool gbt_textgt(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
Datum gbt_text_union(PG_FUNCTION_ARGS)
static bool gbt_bpchargt(const void *a, const void *b, Oid collation, FmgrInfo *flinfo)
GBT_VARKEY * gbt_var_union(const GistEntryVector *entryvec, int32 *size, Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo)
bool gbt_var_consistent(GBT_VARKEY_R *key, const void *query, StrategyNumber strategy, Oid collation, bool is_leaf, const gbtree_vinfo *tinfo, FmgrInfo *flinfo)
float * gbt_var_penalty(float *res, const GISTENTRY *o, const GISTENTRY *n, Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo)
GIST_SPLITVEC * gbt_var_picksplit(const GistEntryVector *entryvec, GIST_SPLITVEC *v, Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo)
GBT_VARKEY_R gbt_var_key_readable(const GBT_VARKEY *k)
bool gbt_var_same(Datum d1, Datum d2, Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo)
GISTENTRY * gbt_var_compress(GISTENTRY *entry, const gbtree_vinfo *tinfo)
Datum DirectFunctionCall2Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_DATUM(n)
#define PG_GETARG_UINT16(n)
#define PG_RETURN_POINTER(x)
#define PG_GET_COLLATION()
#define PG_RETURN_BOOL(x)
int pg_database_encoding_max_length(void)
static bool DatumGetBool(Datum X)
static Datum PointerGetDatum(const void *X)
static Pointer DatumGetPointer(Datum X)
static int32 DatumGetInt32(Datum X)
static pg_noinline void Size size
Datum bpchargt(PG_FUNCTION_ARGS)
Datum bpcharge(PG_FUNCTION_ARGS)
Datum bpcharlt(PG_FUNCTION_ARGS)
Datum bpcharcmp(PG_FUNCTION_ARGS)
Datum bpchareq(PG_FUNCTION_ARGS)
Datum bpcharle(PG_FUNCTION_ARGS)
Datum text_ge(PG_FUNCTION_ARGS)
Datum text_le(PG_FUNCTION_ARGS)
Datum text_gt(PG_FUNCTION_ARGS)
Datum texteq(PG_FUNCTION_ARGS)
Datum bttextcmp(PG_FUNCTION_ARGS)
Datum text_lt(PG_FUNCTION_ARGS)