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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 07c8651) | patch
Preserve AND/OR flatness while extracting restriction OR clauses.
Tue, 9 Sep 2014 22:35:14 +0000 (18:35 -0400)
Tue, 9 Sep 2014 22:35:31 +0000 (18:35 -0400)
commit 1b4cc493d2b5216c14ba3ee781cbeff56f96d1b7
Preserve AND/OR flatness while extracting restriction OR clauses.

The code I added in commit f343a880d5555faf1dad0286c5632047c8f599ad was
careless about preserving AND/OR flatness: it could create a structure with
an OR node directly underneath another one. That breaks an assumption
that's fairly important for planning efficiency, not to mention triggering
various Asserts (as reported by Benjamin Smith). Add a trifle more logic
to handle the case properly.
src/backend/optimizer/util/orclauses.c diff | blob | blame | history
src/test/regress/expected/join.out diff | blob | blame | history
src/test/regress/sql/join.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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