mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add index-only scan support to btree_gist.
inet, cidr, and timetz indexes still cannot support index-only scans, because they don't store the original unmodified value in the index, but a derived approximate value.
This commit is contained in:
@ -18,6 +18,7 @@ typedef struct
|
||||
** Interval ops
|
||||
*/
|
||||
PG_FUNCTION_INFO_V1(gbt_intv_compress);
|
||||
PG_FUNCTION_INFO_V1(gbt_intv_fetch);
|
||||
PG_FUNCTION_INFO_V1(gbt_intv_decompress);
|
||||
PG_FUNCTION_INFO_V1(gbt_intv_union);
|
||||
PG_FUNCTION_INFO_V1(gbt_intv_picksplit);
|
||||
@ -174,6 +175,14 @@ gbt_intv_compress(PG_FUNCTION_ARGS)
|
||||
|
||||
}
|
||||
|
||||
Datum
|
||||
gbt_intv_fetch(PG_FUNCTION_ARGS)
|
||||
{
|
||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||
|
||||
PG_RETURN_POINTER(gbt_num_fetch(entry, &tinfo));
|
||||
}
|
||||
|
||||
Datum
|
||||
gbt_intv_decompress(PG_FUNCTION_ARGS)
|
||||
{
|
||||
|
Reference in New Issue
Block a user