Re: Are my autovacuum settings too aggressive for this table?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Jason Ralph <jralph(at)affinitysolutions(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Are my autovacuum settings too aggressive for this table?
Date: 2019-11-04 04:43:58
Message-ID: 1c8b7029f866d26516e32dd5843c0f4a807638d1.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2019-11-01 at 18:58 +0000, Jason Ralph wrote:
> autovacuum_naptime = 1h
> autovacuum_vacuum_threshold = 10000
> autovacuum_analyze_threshold = 5000
> autovacuum_vacuum_scale_factor = 0.002
> autovacuum_analyze_scale_factor = 0.001

These seem to be crazy settings.

Only once an hour you test if a table needs autovacuum, and then you
configure autovacuum to process tables all the time.
There are only three autovacuum workers, so most of the tables won't
get vacuumed.

Please reset all these values to their default.

If you want autovacuum to be more aggressive for a single table, run

ALTER TABLE x SET (autovacuum_vacuum_cost_delay = 2);

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2019-11-04 12:04:55 Re: explain plan difference
Previous Message Steve Baldwin 2019-11-04 04:03:27 Re: explain plan difference