diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-01-08 16:47:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-01-08 16:47:30 +0000 |
commit | 19f9376bf48216f421849ba3edf123de5df36364 (patch) | |
tree | 9d604bf5c793d9c9d55bb96af811cf55d48186f2 /src/backend/executor/nodeSort.c | |
parent | 9a9a143a980c3a4c9c825ce44abf57718f9f66cb (diff) | |
download | postgresql-19f9376bf48216f421849ba3edf123de5df36364.tar.gz postgresql-19f9376bf48216f421849ba3edf123de5df36364.zip |
Tweak joinlist creation to avoid generating useless one-element subproblems
when collapsing of JOIN trees is stopped by join_collapse_limit. For instance
a list of 11 LEFT JOINs with limit 8 now produces something like
((1 2 3 4 5 6 7 8) 9 10 11 12)
instead of
(((1 2 3 4 5 6 7 8) (9)) 10 11 12)
The latter structure is really only required for a FULL JOIN.
Noted while studying an example from Shane Ambler.
Diffstat (limited to 'src/backend/executor/nodeSort.c')
0 files changed, 0 insertions, 0 deletions