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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9d388e1) | patch
Expand the 'special index operator' machinery to handle special cases
2005年3月26日 23:29:20 +0000 (23:29 +0000)
2005年3月26日 23:29:20 +0000 (23:29 +0000)
commit febc9a613cd523de84da883a81e2040c3b1336a6
Expand the 'special index operator' machinery to handle special cases
for boolean indexes. Previously we would only use such an index with
WHERE clauses like 'indexkey = true' or 'indexkey = false'. The new
code transforms the cases 'indexkey', 'NOT indexkey', 'indexkey IS TRUE',
and 'indexkey IS FALSE' into one of these. While this is only marginally
useful in itself, I intend soon to change constant-expression simplification
so that 'foo = true' and 'foo = false' are reduced to just 'foo' and
'NOT foo' ... which would lose the ability to use boolean indexes for
such queries at all, if the indexscan machinery couldn't make the
reverse transformation.
src/backend/optimizer/path/indxpath.c diff | blob | blame | history
src/backend/optimizer/path/orindxpath.c diff | blob | blame | history
src/backend/optimizer/util/pathnode.c diff | blob | blame | history
src/include/catalog/pg_opclass.h diff | blob | blame | history
src/include/optimizer/paths.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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