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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a6492ff) | patch
Teach predtest.c that "foo" implies "foo IS NOT NULL".
Sat, 1 Aug 2015 18:31:46 +0000 (14:31 -0400)
Sat, 1 Aug 2015 18:31:46 +0000 (14:31 -0400)
commit dea1491ffb448d20764a5f2cec8ae33b64dd39f8
Teach predtest.c that "foo" implies "foo IS NOT NULL".

Per complaint from Peter Holzer. It's useful to cover this special case,
since for a boolean variable "foo", earlier parts of the planner will have
reduced variants like "foo = true" to just "foo", and thus we may fail
to recognize the applicability of a partial index with predicate
"foo IS NOT NULL".

Back-patch to 9.5, but not further; given the lack of previous complaints
this doesn't seem like behavior to change in stable branches.
src/backend/optimizer/util/predtest.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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