diff options
author | Tom Lane | 2020-10-06 15:43:53 +0000 |
---|---|---|
committer | Tom Lane | 2020-10-06 15:43:53 +0000 |
commit | d7885b1f87fa066606acc54700edee28812be8c1 (patch) | |
tree | 389c1ca0d7d32c4a33bc0f81940e9acf5f373039 /doc/src | |
parent | 1b22224945e1e7162fe92aecb1cd2b373fba24c2 (diff) |
Build EC members for child join rels in the right memory context.
This patch prevents crashes or wrong plans when partition-wise joins
are considered during GEQO planning, as a consequence of the
EquivalenceClass data structures becoming corrupt after a GEQO
context reset.
A remaining problem is that successive GEQO cycles will make multiple
copies of the required EC members, since add_child_join_rel_equivalences
has no idea that such members might exist already. For now we'll just
live with that. The lack of field complaints of crashes suggests that
this is a mighty little-used situation.
Back-patch to v12 where this code was introduced.
Discussion: https://postgr.es/m/1683100.1601860653@sss.pgh.pa.us
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions