aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath_exec.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-10-06 11:43:53 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-10-06 11:43:53 -0400
commitb7f166efade004ba293f52b672961ae064d202cd (patch)
treed0d1a69f2ea3832075e6917c2cc87e78146f9698 /src/backend/utils/adt/jsonpath_exec.c
parent96423711918f44600c9ef91f4342984624f053bb (diff)
downloadpostgresql-b7f166efade004ba293f52b672961ae064d202cd.tar.gz
postgresql-b7f166efade004ba293f52b672961ae064d202cd.zip
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 'src/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions