File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -825,6 +825,26 @@ analyze threshold = analyze base threshold + analyze scale factor * number of tu
825
825
<literal>autovacuum_vacuum_cost_limit</literal> storage parameters have been set
826
826
are not considered in the balancing algorithm.
827
827
</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>
828
848
</sect2>
829
849
</sect1>
830
850
You can’t perform that action at this time.
0 commit comments