pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: senor <frio_cervesa@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: autovacuum_freeze_max_age on append-only tables
Date: Wed, 20 Apr 2022 23:06:25 +0000
Message-ID: <DM8PR01MB7016C7C6DCAA853AACEE9039F7F59@DM8PR01MB7016.prod.exchangelabs.com> (raw)

Hi All,
I'm attempting to mimic a new feature in version 13 where INSERTS will trigger vacuum for an append-only table. 

I'm using v11 and configuring autovacuum_freeze_max_age to a value representing some number of minutes worth of inserts on a table containing the current day events. I'm looking to understand the details of how the vacuum operates and what to expect and plan for. I first ran into an issue when a script attempted to alter the table to change the value of autovacuum_freeze_max_age while a vacuum was running. I know there is a lock conflict while the vacuum is running but I was under the impression that autovacuum_vacuum_cost_limit would limit the time blocked. The ALTER hung much longer than I expected. 

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. An upgrade to 13 is "right around the corner".

Pointers to documentation I might have missed is be appreciated.

-Senor




view thread (7+ messages)  latest in thread

Message-ID: <DM8PR01MB7016C7C6DCAA853AACEE9039F7F59@DM8PR01MB7016.prod.exchangelabs.com>
Permalink:  ../DM8PR01MB7016C7C6DCAA853AACEE9039F7F59@DM8PR01MB7016.prod.exchangelabs.com/
Also on:    postgresql.org/message-id/DM8PR01MB7016C7C6DCAA853AACEE9039F7F59@DM8PR01MB7016.prod.exchangelabs.com

 · 

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

* 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