pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Fernández <fmartin91@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Behaviour when autovacuum is canceled
Date: Thu, 13 Sep 2018 15:45:51 -0700
Message-ID: <5b9ae6b53f8b8f4e0c000001@polymail.io> (raw)

Hello,

I'm working on a high volume transaction database and we are starting to tune our autovacuum setting to improve our vacuuming performance.

Once thing that we know about autovacuum is that is can be automatically canceled if a dependent transaction is blocked by the autovacuum transaction. In a situation like this one, autovacuum would be canceled. 

My question is, what will happen to the work that autovacuum has achieved before being canceled ? Is that work lost ? I tried to look for the answer in the code and I'm not completely sure what will happen. From what I could understand (that can be totally wrong), the vacuum process is split in multiple small transactions. If the autovacuum is canceled, could it be possible that only the latest transaction work be lost ?

Sorry if my understanding is not the correct one, understanding how to tune the autovacuum seems really complicated to me.

Thanks before hand! 

Martín

view thread (8+ messages)  latest in thread

Message-ID: <5b9ae6b53f8b8f4e0c000001@polymail.io>
Permalink:  ../5b9ae6b53f8b8f4e0c000001@polymail.io/
Also on:    postgresql.org/message-id/5b9ae6b53f8b8f4e0c000001@polymail.io

 · 

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: fmartin91@gmail.com
  Subject: Re: Behaviour when autovacuum is canceled
  In-Reply-To: <5b9ae6b53f8b8f4e0c000001@polymail.io>
  References: <5b9ae6b53f8b8f4e0c000001@polymail.io>

* 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