From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix EvalPlanQualStart to handle partitioned result rels correctl |
Date: | 2019-04-08 16:20:30 |
Message-ID: | E1hDX0Y-0002dY-I7@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/1b5bbe4bcc912b070ad705ad7a79806692af18c8
Modified Files
--------------
src/backend/executor/execMain.c | 14 +++++++++++++-
src/test/isolation/expected/eval-plan-qual.out | 12 ++++++++++++
src/test/isolation/specs/eval-plan-qual.spec | 17 +++++++++++++++++
3 files changed, 42 insertions(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2019-04-08 20:08:55 | pgsql: doc: Update serial explanation |
Previous Message | Peter Eisentraut | 2019-04-08 11:49:51 | pgsql: doc: Add note about generated columns in foreign tables |