git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f1b4aa2) | patch
Improve implementation of range-contains-element tests.
2011年11月22日 22:45:02 +0000 (17:45 -0500)
2011年11月22日 22:45:37 +0000 (17:45 -0500)
commit cddc819e45010492da00164d225a749661f43aef
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.
src/backend/utils/adt/rangetypes.c diff | blob | blame | history
src/backend/utils/adt/rangetypes_gist.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/catalog/pg_amop.h diff | blob | blame | history
src/test/regress/expected/opr_sanity.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /