diff options
Diffstat (limited to 'contrib/btree_gist/btree_int8.c')
-rw-r--r-- | contrib/btree_gist/btree_int8.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/btree_gist/btree_int8.c b/contrib/btree_gist/btree_int8.c index 9fade3c6d87..44bf69a4fb8 100644 --- a/contrib/btree_gist/btree_int8.c +++ b/contrib/btree_gist/btree_int8.c @@ -16,6 +16,7 @@ typedef struct int64key ** int64 ops */ PG_FUNCTION_INFO_V1(gbt_int8_compress); +PG_FUNCTION_INFO_V1(gbt_int8_fetch); PG_FUNCTION_INFO_V1(gbt_int8_union); PG_FUNCTION_INFO_V1(gbt_int8_picksplit); PG_FUNCTION_INFO_V1(gbt_int8_consistent); @@ -124,6 +125,13 @@ gbt_int8_compress(PG_FUNCTION_ARGS) PG_RETURN_POINTER(gbt_num_compress(entry, &tinfo)); } +Datum +gbt_int8_fetch(PG_FUNCTION_ARGS) +{ + GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0); + + PG_RETURN_POINTER(gbt_num_fetch(entry, &tinfo)); +} Datum gbt_int8_consistent(PG_FUNCTION_ARGS) |