Fix rtree and contrib/rtree_gist search behavior for the 1-D box and
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/rtree_gist/rtree_gist.c | modified | +12 −7 |
| src/backend/access/common/indexvalid.c | modified | +11 −3 |
| src/backend/access/rtree/rtscan.c | modified | +17 −8 |
| src/backend/access/rtree/rtstrat.c | modified | +31 −13 |
| src/include/access/rtree.h | modified | +2 −1 |
| src/include/access/skey.h | modified | +2 −1 |