Re: Eliminating SPI / SQL from some RI triggers - take 3
amit <amitlangote09@gmail.com>
From: Amit Langote <amitlangote09@gmail.com>
To: Tomas Vondra <tomas@vondra.me>
Cc: Daniel Gustafsson <daniel@yesql.se>, Junwang Zhao <zhjwpku@gmail.com>,
Chao Li <li.evan.chao@gmail.com>, Haibo Yan <tristan.yim@gmail.com>, Pavel Stehule <pavel.stehule@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2026-04-01T00:06:49Z
Lists: pgsql-hackers
On Tue, Mar 31, 2026 at 10:33 PM Tomas Vondra <tomas@vondra.me> wrote: > On 3/31/26 13:35, Daniel Gustafsson wrote: > >> On 31 Mar 2026, at 13:26, Amit Langote <amitlangote09@gmail.com> wrote: > >> > >> On Tue, Mar 31, 2026 at 8:22 PM Daniel Gustafsson <daniel@yesql.se> wrote: > >>>> On 31 Mar 2026, at 12:57, Junwang Zhao <zhjwpku@gmail.com> wrote: > >>> > >>>> prion is happy now, the fix works, thanks. > >>> > >>> The widowbird failure seems to be SPI related as well, relevant portion of log > >>> below. Is that the same or another error? > >> > >> prion was unhappy about something else, which I've fixed: > >> https://www.postgresql.org/message-id/E1w7U6V-002H6n-0o%40gemulon.postgresql.org > >> > >> Though, I'm not sure if or why the fix is now the reason for > >> widowbird's failure. > >> > > Right, that failure doesn't seem related. It first appeared ~2 weeks > ago, i.e. before this got committed. > > I don't know what triggered it. It might even be a simple timing issue. > This is a rpi4 machine, running from a USB flashdrive, so it's pretty > slow, and a processes can occasionally "hang" for a little bit and not > disconnect quick enough. > > Not sure if something changed ~2 weeks ago. It might also be the flash > drive getting flaky (even though I don't see anything in dmesg). I see, thanks for checking that. -- Thanks, Amit Langote
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix some const qualifier use in ri_triggers.c
- 1b9dc2cb7574 19 (unreleased) landed
-
doc: Improve consistency of parallel vacuum description.
- 2a3d2f9f68da 19 (unreleased) cited
-
Move afterTriggerFiringDepth into AfterTriggersData
- d6e96bacd3c0 19 (unreleased) landed
-
Fix typo left by 34a30786293
- 03029409b409 19 (unreleased) landed
-
Fix RI fast-path crash under nested C-level SPI
- 34a307862930 19 (unreleased) landed
-
Add nkeys parameter to recheck_matched_pk_tuple()
- e1cc57fabd6c 19 (unreleased) landed
-
Fix deferred FK check batching introduced by commit b7b27eb41a5
- 5c54c3ed1b93 19 (unreleased) landed
-
Optimize fast-path FK checks with batched index probes
- b7b27eb41a5c 19 (unreleased) landed
-
Make FastPathMeta self-contained by copying FmgrInfo structs
- edee5634564d 19 (unreleased) landed
-
Add fast path for foreign key constraint checks
- 2da86c1ef9b5 19 (unreleased) landed