pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: senor <frio_cervesa@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: autovacuum_freeze_max_age on append-only tables
Date: Thu, 21 Apr 2022 15:35:45 +0200
Message-ID: <a9399ae2d3cba3385a5abcf2dc693e7a402d5fbe.camel@cybertec.at> (raw)
In-Reply-To: <DM8PR01MB7016C7C6DCAA853AACEE9039F7F59@DM8PR01MB7016.prod.exchangelabs.com>
References: <DM8PR01MB7016C7C6DCAA853AACEE9039F7F59@DM8PR01MB7016.prod.exchangelabs.com>

On Wed, 2022-04-20 at 23:06 +0000, senor wrote:
> I'm apparently needing an education on how this "to avoid wraparound" vacuum differs from
> any other. I've seen it referenced as "more aggressive" but I'd like details.

The difference is twofold, as far as I know:

- it will not skip any pages just because it happens not to get a lock on them
- it will refuse to die if the lock it holds on the table conflicts with a user lock

Unless you are in the habit of taking strong locks on the table, you shouldn't
notice a difference.  Anti-wraparound VACUUM is a routine activity and does not
interfere with DML, just like a normal VACUUM.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (7+ messages)  latest in thread

Message-ID: <a9399ae2d3cba3385a5abcf2dc693e7a402d5fbe.camel@cybertec.at>
Permalink:  ../a9399ae2d3cba3385a5abcf2dc693e7a402d5fbe.camel@cybertec.at/
Also on:    postgresql.org/message-id/a9399ae2d3cba3385a5abcf2dc693e7a402d5fbe.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, frio_cervesa@hotmail.com
  Subject: Re: autovacuum_freeze_max_age on append-only tables
  In-Reply-To: <a9399ae2d3cba3385a5abcf2dc693e7a402d5fbe.camel@cybertec.at>
  References: <DM8PR01MB7016C7C6DCAA853AACEE9039F7F59@DM8PR01MB7016.prod.exchangelabs.com> <a9399ae2d3cba3385a5abcf2dc693e7a402d5fbe.camel@cybertec.at>

* 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