pgsql: Fix partitioning crashes during error reporting.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix partitioning crashes during error reporting.
Date: 2017-07-24 22:16:00
Message-ID: E1dZldw-0002ke-9U@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix partitioning crashes during error reporting.

In various places where we reverse-map a tuple before calling
ExecBuildSlotValueDescription, we neglected to ensure that the
slot descriptor matched the tuple stored in it.

Amit Langote and Amit Khandekar, reviewed by Etsuro Fujita

Discussion: http://postgr.es/m/CAJ3gD9cqpP=WvJj=dv1ONkPWjy8ZuUaOM4_x86i3uQPas=0_jg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4132dbec69dd4d437e132e57a74a98a40cdcf776

Modified Files
--------------
src/backend/executor/execMain.c | 4 ++++
src/test/regress/expected/insert.out | 15 +++++++++++++++
src/test/regress/expected/updatable_views.out | 15 ++++++++-------
src/test/regress/sql/insert.sql | 12 ++++++++++++
src/test/regress/sql/updatable_views.sql | 4 ++--
5 files changed, 41 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2017-07-25 17:38:09 pgsql: Fix race conditions in replication slot operations
Previous Message Tom Lane 2017-07-24 20:46:25 pgsql: Fix race condition in predicate-lock init code in EXEC_BACKEND b