Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62ed5e7

Browse files
author
Amit Kapila
committed
Doc: document autovacuum interruption.
It's important users be able to know (without looking at the source code)that running DDL or DDL-like commands can interrupt autovacuum which canlead to a lot of dead tuples and hence slower database operations.Reported-by: James ColemanAuthor: James ColemanReviewed-by: Amit KapilaBackpatch-through: 9.4Discussion:https://postgr.es/m/CAAaqYe-XYyNwML1=f=gnd0qWg46PnvD=BDrCZ5-L94B887XVxQ@mail.gmail.com
1 parentcb23c63 commit62ed5e7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎doc/src/sgml/maintenance.sgml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,26 @@ analyze threshold = analyze base threshold + analyze scale factor * number of tu
825825
<literal>autovacuum_vacuum_cost_limit</literal> storage parameters have been set
826826
are not considered in the balancing algorithm.
827827
</para>
828+
829+
<para>
830+
Autovacuum workers generally don't block other commands. If a process
831+
attempts to acquire a lock that conficts with the
832+
<literal>SHARE UPDATE EXCLUSIVE</literal> lock held by autovacuum, lock
833+
acquisition will interrupt the autovacuum. For conflicting lock modes,
834+
see <xref linkend="table-lock-compatibility"/>. However, if the autovacuum
835+
is running to prevent transaction ID wraparound (i.e., the autovacuum query
836+
name in the <structname>pg_stat_activity</structname> view ends with
837+
<literal>(to prevent wraparound)</literal>), the autovacuum is not
838+
automatically interrupted.
839+
</para>
840+
841+
<warning>
842+
<para>
843+
Regularly running commands that acquire locks conflicting with a
844+
<literal>SHARE UPDATE EXCLUSIVE</literal> lock (e.g., ANALYZE) can
845+
effectively prevent autovacuums from ever completing.
846+
</para>
847+
</warning>
828848
</sect2>
829849
</sect1>
830850

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp