postgresql/src/test
Tom Lane 5372275b4b Fix planning of parameterized appendrel paths with expensive join quals.
The code in set_append_rel_pathlist() for building parameterized paths
for append relations (inheritance and UNION ALL combinations) supposed
that the cheapest regular path for a child relation would still be cheapest
when reparameterized.  Which might not be the case, particularly if the
added join conditions are expensive to compute, as in a recent example from
Jeff Janes.  Fix it to compare child path costs *after* reparameterizing.
We can short-circuit that if the cheapest pre-existing path is already
parameterized correctly, which seems likely to be true often enough to be
worth checking for.

Back-patch to 9.2 where parameterized paths were introduced.
2013-07-07 22:37:24 -04:00
..
examples Update copyrights for 2013 2013-01-01 17:15:01 -05:00
isolation pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
locale Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
mb Lots of doc corrections. 2012-04-23 22:43:09 -04:00
performance Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
regress Fix planning of parameterized appendrel paths with expensive join quals. 2013-07-07 22:37:24 -04:00
thread Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Add isolation test to check-world and installcheck-world 2012-03-05 20:19:20 +02:00