From 23f10b6473ed58c3699b81ca4677f4ff51878ec0 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 8 Mar 2013 15:03:19 +0200 Subject: SP-GiST support of the range adjacent operator -|- Alexander Korotkov, reviewed by Jeff Davis. --- src/include/catalog/pg_amop.h | 1 + src/include/utils/rangetypes.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/catalog/pg_amop.h b/src/include/catalog/pg_amop.h index 5d451e36c11..d2003487472 100644 --- a/src/include/catalog/pg_amop.h +++ b/src/include/catalog/pg_amop.h @@ -775,6 +775,7 @@ DATA(insert ( 3474 3831 3831 2 s 3895 4000 0 )); DATA(insert ( 3474 3831 3831 3 s 3888 4000 0 )); DATA(insert ( 3474 3831 3831 4 s 3896 4000 0 )); DATA(insert ( 3474 3831 3831 5 s 3894 4000 0 )); +DATA(insert ( 3474 3831 3831 6 s 3897 4000 0 )); DATA(insert ( 3474 3831 3831 7 s 3890 4000 0 )); DATA(insert ( 3474 3831 3831 8 s 3892 4000 0 )); DATA(insert ( 3474 3831 2283 16 s 3889 4000 0 )); diff --git a/src/include/utils/rangetypes.h b/src/include/utils/rangetypes.h index 67b1a7ce611..f6b941d3acc 100644 --- a/src/include/utils/rangetypes.h +++ b/src/include/utils/rangetypes.h @@ -201,6 +201,8 @@ extern int range_cmp_bounds(TypeCacheEntry *typcache, RangeBound *b1, RangeBound *b2); extern int range_cmp_bound_values(TypeCacheEntry *typcache, RangeBound *b1, RangeBound *b2); +extern bool bounds_adjacent(TypeCacheEntry *typcache, RangeBound bound1, + RangeBound bound2); extern RangeType *make_empty_range(TypeCacheEntry *typcache); /* GiST support (in rangetypes_gist.c) */ -- cgit v1.2.3