RE: pg_logical_slot_get_changes waits continously for a partial WAL record spanning across 2 pages
Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
From: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
To: 'Michael Paquier' <michael@paquier.xyz>, vignesh C <vignesh21@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Alexander
Korotkov <aekorotkov@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Amit Kapila <amit.kapila16@gmail.com>, Melanie Plageman <melanieplageman@gmail.com>
Date: 2025-07-15T09:14:27Z
Lists: pgsql-hackers
Dear Michael, > I like the addition of an extra pg_logical_emit_message() in test 046 > anyway, down to v17, in the test 046 for all the branches. Even if > the reproduction is sporadic, we have seen it pretty quickly in the CI > and in the buildfarm so it would not go unnoticed for a long time if > we mess up with this stuff again. I put pg_logical_emit_message() after injection_points_wakeup(), but your patch puts it before. I verified even your patch can reproduce the issue, but is there a reason? (This is not a comment which must be fixed, I just want to know the reason to study) > With all that said, I'll move on with this stuff once the embargo for > v18 beta2 is lifted and the tag is pushed. That should happen in 24h > or so, I guess. The provided patches looks good to me. Best regards, Hayato Kuroda FUJITSU LIMITED
Commits
-
Fix infinite wait when reading a partially written WAL record
- c9f4e7520603 17.6 landed
- 762f352ca4a6 13.22 landed
- bedfdb85b0a3 14.19 landed
- 9f270f48f3fe 15.14 landed
- b485e1c89a6d 16.10 landed
- d3917d8f13e7 19 (unreleased) landed
- 5449d5b7ae9c 18.0 landed
-
Improve the stability of the recovery test 047_checkpoint_physical_slot
- fd39c3cf2839 17.6 landed
- c71c702f067b 18.0 landed
- ccd945159361 19 (unreleased) landed
-
Improve recovery test 046_checkpoint_logical_slot
- 6aefde2a2db8 17.6 landed