From a730908764b2255fd7ab36441417bddc643d4a5e Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Thu, 26 Jun 2025 16:49:59 +0900 Subject: [PATCH v2] doc: Mention idle_replication_slot_timeout in pg_replication_slots docs. The pg_replication_slots documentation previously mentioned 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 was not documented. This commit updates the documentation to also mention idle_replication_slot_timeout as a factor that can cause wal_status to become unreserved or lost. Author: Fujii Masao Reviewed-by: Hayato Kuroda Reviewed-by: Nisha Moond Discussion: https://postgr.es/m/78b34e84-2195-4f28-a151-5d204a382fdd@oss.nttdata.com --- doc/src/sgml/system-views.sgml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/system-views.sgml b/doc/src/sgml/system-views.sgml index 986ae1f543d..308e5dabf3b 100644 --- a/doc/src/sgml/system-views.sgml +++ b/doc/src/sgml/system-views.sgml @@ -2825,15 +2825,15 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx - lost means that some required WAL files have - been removed and this slot is no longer usable. + lost means that this slot is no longer usable. The last two states are seen only when is - non-negative. If restart_lsn is NULL, this - field is null. + non-negative and/or + is greater than zero. If restart_lsn is NULL, + this field is null. -- 2.49.0