summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2013-07-08 02:37:32 +0000
committerTom Lane2013-07-08 02:37:32 +0000
commit1bd25c03487dd2f96035f88c77fc0d89bb438fac (patch)
treeba2f424a103b3371d82a90a3c7088dd5c9b99f55 /doc/src
parent62ba0c12e599a377b3c1f1c94e0018a7c6f348ec (diff)
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.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions