]> granicus.if.org Git - postgresql/commit
Fix partitioning crashes during error reporting.
authorRobert Haas <rhaas@postgresql.org>
Mon, 24 Jul 2017 22:08:08 +0000 (18:08 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 24 Jul 2017 22:08:08 +0000 (18:08 -0400)
commit4132dbec69dd4d437e132e57a74a98a40cdcf776
tree03fdb89eac9bcc736c3502da8fa2a0423ac5e904
parente2c8100e60729368c84e9a49ada9b44df5a1b851
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
src/backend/executor/execMain.c
src/test/regress/expected/insert.out
src/test/regress/expected/updatable_views.out
src/test/regress/sql/insert.sql
src/test/regress/sql/updatable_views.sql