postgresql/src/test
Tom Lane ec94bc1473 Undo mistaken tightening in join_is_legal().
One of the changes I made in commit 8703059c6b turns out not to have
been such a good idea: we still need the exception in join_is_legal() that
allows a join if both inputs already overlap the RHS of the special join
we're checking.  Otherwise we can miss valid plans, and might indeed fail
to find a plan at all, as in recent report from Andreas Seltenreich.

That code was added way back in commit c17117649b, but I failed to
include a regression test case then; my bad.  Put it back with a better
explanation, and a test this time.  The logic does end up a bit different
than before though: I now believe it's appropriate to make this check
first, thereby allowing such a case whether or not we'd consider the
previous SJ(s) to commute with this one.  (Presumably, we already decided
they did; but it was confusing to have this consideration in the middle
of the code that was handling the other case.)

Back-patch to all active branches, like the previous patch.
2015-08-12 21:19:04 -04:00
..
examples Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
isolation Temporarily(?) remove BRIN isolation test. 2015-08-10 10:22:47 -04:00
locale Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
mb Fix broken multibyte regression tests. 2015-08-09 11:03:29 +09:00
modules RLS: Keep deny policy when only restrictive exist 2015-08-03 15:32:58 -04:00
perl Make tap tests store postmaster logs and handle vpaths correctly 2015-07-28 16:04:05 -04:00
regress Undo mistaken tightening in join_is_legal(). 2015-08-12 21:19:04 -04:00
ssl Improve logging of TAP tests. 2015-07-28 12:22:21 -04:00
thread Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00
Makefile Fix up .gitignore and cleanup actions in some src/test/ subdirectories. 2015-04-24 17:13:06 -04:00