mirror of
https://github.com/postgres/postgres.git
synced 2025-12-04 12:02:48 +03:00
Add index-only scan support to range type GiST opclass.
Andreas Karlsson
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user