Re: Mention idle_replication_slot_timeout in pg_replication_slots docs
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: "pgsql-docs@lists.postgresql.org" <pgsql-docs@lists.postgresql.org>
Date: 2025-06-26T07:55:26Z
Lists: pgsql-docs
Attachments
- v2-0001-doc-Mention-idle_replication_slot_timeout-in-pg_r.patch (text/plain) patch v2-0001
On 2025/06/26 15:43, Hayato Kuroda (Fujitsu) wrote: > Dear Fujii-san, > >> The pg_replication_slots documentation mentions only max_slot_wal_keep_size >> as a condition under which the wal_status column can show unreserved or lost. >> However, since commit ac0e33136ab, idle_replication_slot_timeout can also >> cause this behavior when it is set. This has not been documented yet. >> https://www.postgresql.org/docs/devel/view-pg-replication-slots.html > > Oh, I feel the doc should be also updated. Thanks for the review! >> So, how about updating the documentation to also mention >> idle_replication_slot_timeout as a factor that can cause wal_status to >> become unreserved or lost? Patch attached. > > One comment: > > ``` > <para> > <literal>lost</literal> means that some required WAL files have > been removed and this slot is no longer usable. > </para> > ``` > > IIUC, there is a case that status is "lost" but the required WALs have not been > dropped yet if the slot was invalidated due to the timeout. How about removing the > first part: > > ``` > <literal>lost</literal> means that this slot is no longer usable. > ``` Agreed. Attached is the updated version of the patch. Regards, -- Fujii Masao NTT DATA Japan Corporation
Commits
-
doc: Update outdated descriptions of wal_status in pg_replication_slots.
- db51bdf975e2 16.10 landed
- ba9201b57b00 17.6 landed
- 0cd7fcaa8574 18.0 landed
- ff3007c66dc6 19 (unreleased) landed
-
doc: Remove incorrect note about wal_status in pg_replication_slots.
- 4c7d2c206200 13.22 landed
- f062e43484b0 14.19 landed
- 8a010df41e02 15.14 landed
- 4ef4b9ba7737 16.10 landed
- 27224e660aca 17.6 landed
- f0151e2a4ef1 18.0 landed
- 170673a22f28 19 (unreleased) landed
-
Invalidate inactive replication slots.
- ac0e33136abc 18.0 cited
-
Support invalidating replication slots due to horizon and wal_level
- be87200efd93 16.0 cited