Re: BUG #18986: SIGSEGV in nodeModifyTable.c during Parallel Execution
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, y@lll.gd, pgsql-bugs@lists.postgresql.org
Date: 2025-07-16T10:48:55Z
Lists: pgsql-bugs
On Wed, Jul 16, 2025 at 11:42:33AM +0100, Dean Rasheed wrote: > Attached is a reproducer using the merge-match-recheck isolation test. > > I believe that the bug only goes back to v17, because MERGE could not > appear inside a CTE prior to that. That was fast, nice! > I think that best thing to do is pass the commandType to > ExecBRUpdateTriggers(), except that in v17 we shouldn't change the > signature of ExecBRUpdateTriggers(), so a wrapper function will be > needed, similar to what 9321c79 did. Yes, changing ExecBRUpdateTriggers() would not be a good idea on a stable branch.. I can see that at least timescaledb does a direct call to it. A minor upgrade breakage would be bad for them. > Question: Is it OK to change the signature of ExecBRUpdateTriggers() > in v18? We are still in beta, so that's not a problem for v18 and HEAD. -- Michael
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix concurrent update trigger issues with MERGE in a CTE.
- 91ad1bdef8e4 17.6 landed
- 27c7c11366f7 18.0 landed
- 5022ff250eeb 19 (unreleased) landed
-
Stamp 17.5.
- 5e2f3df49d42 17.5 cited
-
Fix concurrent update issues with MERGE.
- 9321c79c86e6 16.0 cited