postgres.git / summary / log / commit / refs

commit    e90251176da4fb0a6ffed01b5aaff9621b93cf4d
Author:   Fujii Masao <fujii@postgresql.org>
Date:     Fri Jun 12 02:08:33 2026 +0000
First released in: 19.0, 14.24, 15.19, 16.15, 17.11, 18.6

    doc: fix reference for finding replication slots to drop
    
    Commit a70bce43fb added instructions on how to recover if PostgreSQL
    refuses to issue new transaction IDs because of imminent wraparound,
    but when describing how to find replication slots that should be dropped,
    it referred to pg_stat_replication where it should have referenced
    pg_replication_slots.
    
    In passing, decorate references to views with <structname> tags.
    
    Backpatch to all supported versions.
    
    Reported-By: Sanjaya Waruna <sanjaya.waruna@gmail.com>
    Author: Laurenz Albe <laurenz.albe@cybertec.at>
    Reviewed-by: Robert Treat <rob@xzilla.net>
    Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
    Discussion: https://postgr.es/m/176767268098.1084085.10345048667224193115@wrigleys.postgresql.org
    Backpatch-through: 14


doc/src/sgml/maintenance.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index b81a5806eb6..356e826ff16 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -683,20 +683,20 @@ HINT: Execute a database-wide VACUUM in that database. <orderedlist> <listitem> <simpara>Resolve old prepared transactions. You can find these by checking - <link linkend="view-pg-prepared-xacts">pg_prepared_xacts</link> for rows where + <link linkend="view-pg-prepared-xacts"><structname>pg_prepared_xacts</structname></link> for rows where <literal>age(transactionid)</literal> is large. Such transactions should be committed or rolled back.</simpara> </listitem> <listitem> <simpara>End long-running open transactions. You can find these by checking - <link linkend="monitoring-pg-stat-activity-view">pg_stat_activity</link> for rows where + <link linkend="monitoring-pg-stat-activity-view"><structname>pg_stat_activity</structname></link> for rows where <literal>age(backend_xid)</literal> or <literal>age(backend_xmin)</literal> is large. Such transactions should be committed or rolled back, or the session can be terminated using <literal>pg_terminate_backend</literal>.</simpara> </listitem> <listitem> <simpara>Drop any old replication slots. Use - <link linkend="monitoring-pg-stat-replication-view">pg_stat_replication</link> to + <link linkend="view-pg-replication-slots"><structname>pg_replication_slots</structname></link> to find slots where <literal>age(xmin)</literal> or <literal>age(catalog_xmin)</literal> is large. In many cases, such slots were created for replication to servers that no longer exist, or that have been down for a long time. If you drop a slot for a server [parent: 6c08cbb7a7b4]