Add assertions checking for the startup process in WAL replay routines
Michael Paquier <michael@paquier.xyz>
Add assertions checking for the startup process in WAL replay routines These assertions may prove to become useful to make sure that no process other than the startup process calls the routines where these checks are added, as we expect that these do not interfere with a WAL receiver switched to a "stopping" state by a startup process. The assumption that only the startup process can use this code has existed for many years, without a check enforcing it. Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com> Discussion: https://postgr.es/m/aQmGeVLYl51y1m_0@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +2 −0 |
| src/backend/access/transam/xlogrecovery.c | modified | +4 −0 |
Discussion
- BUG #19093: Behavioral change in walreceiver termination between PostgreSQL 14.17 and 14.18 21 messages · 2025-10-23 → 2025-11-09