]> granicus.if.org Git - postgresql/commit
Fix EvalPlanQualStart to handle partitioned result rels correctly.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Apr 2019 16:20:23 +0000 (12:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Apr 2019 16:20:23 +0000 (12:20 -0400)
commit1b5bbe4bcc912b070ad705ad7a79806692af18c8
tree47237ac3ce4c3625ee806cabe98dfac2d95413ca
parent67999b3547f7ee8b8c099f41ddab3001e2792202
Fix EvalPlanQualStart to handle partitioned result rels correctly.

The es_root_result_relations array needs to be shallow-copied in the
same way as the main es_result_relations array, else EPQ rechecks on
partitioned result relations fail, as seen in bug #15677 from
Norbert Benkocs.

Amit Langote, isolation test case added by me

Discussion: https://postgr.es/m/15677-0bf089579b4cd02d@postgresql.org
Discussion: https://postgr.es/m/19321.1554567786@sss.pgh.pa.us
src/backend/executor/execMain.c
src/test/isolation/expected/eval-plan-qual.out
src/test/isolation/specs/eval-plan-qual.spec