aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_date.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/btree_gist/btree_date.c')
-rw-r--r--contrib/btree_gist/btree_date.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/btree_gist/btree_date.c b/contrib/btree_gist/btree_date.c
index 153e0eb9b6f..bb516a95005 100644
--- a/contrib/btree_gist/btree_date.c
+++ b/contrib/btree_gist/btree_date.c
@@ -17,6 +17,7 @@ typedef struct
** date ops
*/
PG_FUNCTION_INFO_V1(gbt_date_compress);
+PG_FUNCTION_INFO_V1(gbt_date_fetch);
PG_FUNCTION_INFO_V1(gbt_date_union);
PG_FUNCTION_INFO_V1(gbt_date_picksplit);
PG_FUNCTION_INFO_V1(gbt_date_consistent);
@@ -134,7 +135,13 @@ gbt_date_compress(PG_FUNCTION_ARGS)
PG_RETURN_POINTER(gbt_num_compress(entry, &tinfo));
}
+Datum
+gbt_date_fetch(PG_FUNCTION_ARGS)
+{
+ GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
+ PG_RETURN_POINTER(gbt_num_fetch(entry, &tinfo));
+}
Datum
gbt_date_consistent(PG_FUNCTION_ARGS)