aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-03-30 13:21:43 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-03-30 13:22:38 +0300
commit0633a60f4d2a2677db45d9261c94be9287e36d7c (patch)
treed9c4332d25f4f31805be5a62f6796c1599617a55 /src/backend/utils/adt
parent1c41e2a998a0de16d9d33949a7b98a5be3d2477c (diff)
downloadpostgresql-0633a60f4d2a2677db45d9261c94be9287e36d7c.tar.gz
postgresql-0633a60f4d2a2677db45d9261c94be9287e36d7c.zip
Add index-only scan support to range type GiST opclass.
Andreas Karlsson
Diffstat (limited to 'src/backend/utils/adt')
-rw-r--r--src/backend/utils/adt/rangetypes_gist.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/backend/utils/adt/rangetypes_gist.c b/src/backend/utils/adt/rangetypes_gist.c
index c1ff471e301..ef841219d00 100644
--- a/src/backend/utils/adt/rangetypes_gist.c
+++ b/src/backend/utils/adt/rangetypes_gist.c
@@ -216,7 +216,7 @@ range_gist_union(PG_FUNCTION_ARGS)
PG_RETURN_RANGE(result_range);
}
-/* compress, decompress are no-ops */
+/* compress, decompress, fetch are no-ops */
Datum
range_gist_compress(PG_FUNCTION_ARGS)
{
@@ -233,6 +233,14 @@ range_gist_decompress(PG_FUNCTION_ARGS)
PG_RETURN_POINTER(entry);
}
+Datum
+range_gist_fetch(PG_FUNCTION_ARGS)
+{
+ GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
+
+ PG_RETURN_POINTER(entry);
+}
+
/*
* GiST page split penalty function.
*