diff options
| author | Tom Lane | 2005-06-24 00:18:52 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-06-24 00:18:52 +0000 |
| commit | 9a09248eddf12339677169064c88e4df11e5077f (patch) | |
| tree | ff29984a029e973b85b2869de2c115399c7c6b07 /src/include | |
| parent | dea41174b205ee592d46c074518b38d97b8b90c2 (diff) | |
Fix rtree and contrib/rtree_gist search behavior for the 1-D box and
polygon operators (<<, &<, >>, &>). Per ideas originally put forward
by andrew@supernews and later rediscovered by moi. This patch just
fixes the existing opclasses, and does not add any new behavior as I
proposed earlier; that can be sorted out later. In principle this
could be back-patched, since it changes only search behavior and not
system catalog entries nor rtree index contents. I'm not currently
planning to do that, though, since I think it could use more testing.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/rtree.h | 3 | ||||
| -rw-r--r-- | src/include/access/skey.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/include/access/rtree.h b/src/include/access/rtree.h index 14a13f4b3a4..744f116fe37 100644 --- a/src/include/access/rtree.h +++ b/src/include/access/rtree.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/rtree.h,v 1.39 2005/06/06 17:01:24 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/rtree.h,v 1.40 2005/06/24 00:18:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -136,5 +136,6 @@ extern void ReleaseResources_rtree(void); /* rtstrat.c */ extern StrategyNumber RTMapToInternalOperator(StrategyNumber strat); +extern bool RTMapToInternalNegate(StrategyNumber strat); #endif /* RTREE_H */ diff --git a/src/include/access/skey.h b/src/include/access/skey.h index a160f7b39eb..61a8e81a835 100644 --- a/src/include/access/skey.h +++ b/src/include/access/skey.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/skey.h,v 1.28 2004/12/31 22:03:21 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/access/skey.h,v 1.29 2005/06/24 00:18:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -72,6 +72,7 @@ typedef ScanKeyData *ScanKey; /* ScanKeyData sk_flags */ #define SK_ISNULL 0x0001 /* sk_argument is NULL */ #define SK_UNARY 0x0002 /* unary operator (currently unsupported) */ +#define SK_NEGATE 0x0004 /* must negate the function result */ /* |
