pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Martín Fernández <fmartin91@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Behaviour when autovacuum is canceled
Date: Fri, 14 Sep 2018 12:41:06 -0300
Message-ID: <20180914154106.7nvug4lgfjphuz27@alvherre.pgsql> (raw)
In-Reply-To: <5b9b0f243f8b8f4e0c000004@polymail.io>

On 2018-Sep-13, Martín Fernández wrote:

> By performing this changes we are going to start relying more heavily
> on the autovacuum work and the concern of "lost work" caused by
> autovacuum canceling itself when locking contention happen showed up.
> I'm guessing that we might be over thinking this and the canceling is
> not going to happen as frequently as we think it will.

Any DDL run on a table will cancel an autovacuum over that table (except
for-wraparound autovacuums).  If these are rare, you don't need to worry
about that too much.  If they are frequent enough that autovacuum will
be cancelled regularly in one table, you'll be sad.

If you're running vacuum by hand, you'd probably see your DDL blocking
behind VACUUM, which would be very noticeable.  I think if you don't
have trouble today without having tuned the system carefully to avoid
such trouble, you're not likely to have trouble with autovacuum either.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (8+ messages)  latest in thread

Message-ID: <20180914154106.7nvug4lgfjphuz27@alvherre.pgsql>
Permalink:  ../20180914154106.7nvug4lgfjphuz27@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180914154106.7nvug4lgfjphuz27@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alvherre@2ndquadrant.com, fmartin91@gmail.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
  Subject: Re: Behaviour when autovacuum is canceled
  In-Reply-To: <20180914154106.7nvug4lgfjphuz27@alvherre.pgsql>
  References: <5b9b0f243f8b8f4e0c000004@polymail.io> <20180914154106.7nvug4lgfjphuz27@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox