Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b86be84

Browse files
committed
Fix documentation of "must be vacuumed within" warning.
Warnings start 10M transactions before xidStopLimit, which is 11M transactions before wraparound. The sample WARNING output showed a value greater than 11M, and its HINT message predated commit 25ec228. Hence, the sample was impossible. Back-patch to 9.5 (all supported versions).
1 parent e5f63db commit b86be84

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/src/sgml/maintenance.sgml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,14 +606,13 @@ SELECT datname, age(datfrozenxid) FROM pg_database;
606606
</para>
607607

608608
<para>
609-
If for some reason autovacuum fails to clear old XIDs from a table,
610-
the system will begin to emit warning messages like this when the
611-
database's oldest XIDs reach ten million transactions from the wraparound
612-
point:
609+
If for some reason autovacuum fails to clear old XIDs from a table, the
610+
system will begin to emit warning messages like this when the database's
611+
oldest XIDs reach eleven million transactions from the wraparound point:
613612

614613
<programlisting>
615-
WARNING: database "mydb" must be vacuumed within 177009986 transactions
616-
HINT: To avoid a database shutdown, execute a database-wide VACUUM in "mydb".
614+
WARNING: database "mydb" must be vacuumed within 10985967 transactions
615+
HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
617616
</programlisting>
618617

619618
(A manual <command>VACUUM</command> should fix the problem, as suggested by the

0 commit comments

Comments
 (0)