From 9ae746d88004993735e85aea6eb096e23d7cb705 Mon Sep 17 00:00:00 2001 From: Joao Foltran Date: Thu, 26 Mar 2026 16:08:58 -0300 Subject: [PATCH v2 5/5] Add documentation for auto_revalidate Document the auto_revalidate column in pg_replication_slots view (system-views.sgml) and the new optional parameter in pg_create_physical_replication_slot (func-admin.sgml). --- doc/src/sgml/func/func-admin.sgml | 8 ++++++-- doc/src/sgml/system-views.sgml | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/func/func-admin.sgml b/doc/src/sgml/func/func-admin.sgml index 210b1118bdf..c5f9f9e13c1 100644 --- a/doc/src/sgml/func/func-admin.sgml +++ b/doc/src/sgml/func/func-admin.sgml @@ -1032,7 +1032,7 @@ postgres=# SELECT '0/0'::pg_lsn + pd.segment_number * ps.setting::int + :offset pg_create_physical_replication_slot - pg_create_physical_replication_slot ( slot_name name , immediately_reserve boolean, temporary boolean ) + pg_create_physical_replication_slot ( slot_name name , immediately_reserve boolean, temporary boolean, auto_revalidate boolean ) record ( slot_name name, lsn pg_lsn ) @@ -1051,7 +1051,11 @@ postgres=# SELECT '0/0'::pg_lsn + pd.segment_number * ps.setting::int + :offset parameter, temporary, when set to true, specifies that the slot should not be permanently stored to disk and is only meant for use by the current session. Temporary slots are also - released upon any error. This function corresponds + released upon any error. The optional fourth parameter, + auto_revalidate, when set to true, specifies + that the slot may be automatically revalidated after invalidation + once the standby reconnects and confirms WAL receipt. + This function corresponds to the replication protocol command CREATE_REPLICATION_SLOT ... PHYSICAL. diff --git a/doc/src/sgml/system-views.sgml b/doc/src/sgml/system-views.sgml index 9ee1a2bfc6a..f6540776bd5 100644 --- a/doc/src/sgml/system-views.sgml +++ b/doc/src/sgml/system-views.sgml @@ -3131,6 +3131,17 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx + + + auto_revalidate bool + + + True if this physical slot is eligible for automatic revalidation + after invalidation, once the standby reconnects and confirms WAL + receipt. Always false for logical slots. + + + slotsync_skip_reasontext -- 2.50.1 (Apple Git-155)