Re: AutoVacuum and growing transaction XID's - Mailing list pgsql-general

From github kran
Subject Re: AutoVacuum and growing transaction XID's
Date
Msg-id CACaZr5T4P8oo45gvqOKn8CrAatGr-POW0=jpHzEXZ4zn5U3mCA@mail.gmail.com
Whole thread Raw
In response to Re: AutoVacuum and growing transaction XID's  (Michael Lewis <mlewis@entrata.com>)
List pgsql-general
Thanks for yous suggestions Michael  and David.

On Fri, May 8, 2020 at 4:11 PM Michael Lewis <mlewis@entrata.com> wrote:
autovacuum_naptime being only 5 seconds seems too frequent. A lock_timeout might be 1-5 seconds depending on your system. Usually, DDL can fail and wait a little time rather than lock the table for minutes and have all reads back up behind the DDL.

Given you have autovacuum_vacuum_cost_limit set to unlimited (seems very odd), I'm not sure a manual vacuum freeze command on the tables with high age would perform differently. Still, issuing a vacuum freeze and then killing the autovacuum process might be worth trying.

pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: [EXTERNAL] Re: PostgreSQL-12 replication failover, pg_rewindfails
Next
From: Michael Lewis
Date:
Subject: Re: Hash partitioning, what function is used to compute the hash?