Fix partitioning crashes during error reporting.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execMain.c | modified | +4 −0 |
| src/test/regress/expected/insert.out | modified | +15 −0 |
| src/test/regress/expected/updatable_views.out | modified | +8 −7 |
| src/test/regress/sql/insert.sql | modified | +12 −0 |
| src/test/regress/sql/updatable_views.sql | modified | +2 −2 |
Discussion
- Oddity in error handling of constraint violation in ExecConstraints for partitioned tables 15 messages · 2017-07-06 → 2017-07-24