Re: BUG #16293: postgres segfaults and returns SQLSTATE 08006
Amit Langote <amitlangote09@gmail.com>
From: Amit Langote <amitlangote09@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Daniel WM <dwilches@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2020-03-31T09:37:56Z
Lists: pgsql-bugs
Attachments
- v2-0001-Build-root-tuple-in-ExecBuildSlotValueDescription.patch (application/octet-stream) patch v2-0001
On Tue, Mar 31, 2020 at 3:30 PM Amit Langote <amitlangote09@gmail.com> wrote: > On Tue, Mar 24, 2020 at 3:53 AM Andres Freund <andres@anarazel.de> wrote: > > If we actually want to keep this conversion, I wonder if the right > > answer would be to change those routines to pass in > > mtstate->mt_root_tuple_slot instead (and ensure it's created when > > needed). One way to achieve that would be to move > > ModifyTableState->mt_root_tuple_slot to ResultRelInfo - and potentially > > create it on demand? > > Something like ri_PartitionRootSlot sounds like a good idea, but we > should make that a reference to mt_root_tuple_slot instead of its > replacement. Would you be interested in seeing a patch? I have updated the patch for HEAD to be this way. -- Thank you, Amit Langote EnterpriseDB: http://www.enterprisedb.com
Commits
-
Add regression tests for constraint errors in partitioned tables.
- f801ceb696b4 13.0 landed
- 58995db07e37 11.8 landed
- 2060999a4d6e 10.13 landed
- 7c8364200261 12.3 landed
-
Fix potential crash after constraint violation errors in partitioned tables.
- d35631e37cab 11.8 landed
- 44170a58092d 10.13 landed