diff options
| author | Tom Lane | 2011-11-22 22:45:02 +0000 |
|---|---|---|
| committer | Tom Lane | 2011-11-22 22:45:37 +0000 |
| commit | cddc819e45010492da00164d225a749661f43aef (patch) | |
| tree | 310bec8fb6eed089949c73f800c786ab3d94f199 /src/include | |
| parent | f1b4aa2a84732255bd8a34fc9c7994a04409b77a (diff) | |
Improve implementation of range-contains-element tests.
Implement these tests directly instead of constructing a singleton range
and then applying range-contains. This saves a range serialize/deserialize
cycle as well as a couple of redundant bound-comparison steps, and adds
very little code on net.
Remove elem_contained_by_range from the GiST opclass: it doesn't belong
there because there is no way to use it in an index clause (where the
indexed column would have to be on the left). Its commutator is in the
opclass, and that's what counts.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/catversion.h | 2 | ||||
| -rw-r--r-- | src/include/catalog/pg_amop.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index c397151370c..853aa37e9d0 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 201111211 +#define CATALOG_VERSION_NO 201111221 #endif diff --git a/src/include/catalog/pg_amop.h b/src/include/catalog/pg_amop.h index a240063a3fd..a95cf5fa50d 100644 --- a/src/include/catalog/pg_amop.h +++ b/src/include/catalog/pg_amop.h @@ -735,7 +735,6 @@ DATA(insert ( 3919 3831 3831 6 s 3897 783 0 )); DATA(insert ( 3919 3831 3831 7 s 3890 783 0 )); DATA(insert ( 3919 3831 3831 8 s 3892 783 0 )); DATA(insert ( 3919 3831 2283 16 s 3889 783 0 )); -DATA(insert ( 3919 2283 3831 17 s 3891 783 0 )); DATA(insert ( 3919 3831 3831 18 s 3882 783 0 )); DATA(insert ( 3919 3831 3831 19 s 3883 783 0 )); |
