Fix EvalPlanQualStart to handle partitioned result rels correctly.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execMain.c | modified | +13 −1 |
| src/test/isolation/expected/eval-plan-qual.out | modified | +12 −0 |
| src/test/isolation/specs/eval-plan-qual.spec | modified | +17 −0 |
Discussion
- BUG #15677: Crash while deleting from partitioned table 8 messages · 2019-03-08 → 2019-06-29
- BUG #15727: PANIC: cannot abort transaction 295144144, it was already committed 46 messages · 2019-04-02 → 2019-04-12