Skip to content

Commit 51ff9ff

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 dd2bb77 commit 51ff9ff

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
@@ -591,14 +591,13 @@ SELECT datname, age(datfrozenxid) FROM pg_database;
591591
</para>
592592

593593
<para>
594-
If for some reason autovacuum fails to clear old XIDs from a table,
595-
the system will begin to emit warning messages like this when the
596-
database's oldest XIDs reach ten million transactions from the wraparound
597-
point:
594+
If for some reason autovacuum fails to clear old XIDs from a table, the
595+
system will begin to emit warning messages like this when the database's
596+
oldest XIDs reach eleven million transactions from the wraparound point:
598597

599598
<programlisting>
600-
WARNING: database "mydb" must be vacuumed within 177009986 transactions
601-
HINT: To avoid a database shutdown, execute a database-wide VACUUM in "mydb".
599+
WARNING: database "mydb" must be vacuumed within 10985967 transactions
600+
HINT: To avoid a database shutdown, execute a database-wide VACUUM in that database.
602601
</programlisting>
603602

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

0 commit comments

Comments
 (0)