pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Olivier Gautherot <ogautherot@gautherot.net>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Atul Kumar <akumar14871@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: autovacuum recommendations for Large tables
Date: Wed, 18 Nov 2020 13:07:10 +0100
Message-ID: <75ca65304d1cb8a4288d1b78cf7adf067dbe354e.camel@cybertec.at> (raw)
In-Reply-To: <CAJ7S9TU1PzTRMBO_7XcbwkVrWXUEHPbbVUv_Q6RLorJnHoPtEg@mail.gmail.com>
References: <CA+ONtZ6Fc5CghGQn1iAwxitK_X_5FoV-nxgAKEFEbvNTYOZ04w@mail.gmail.com>
	<CAJ7S9TWk6sS4sSA9sbFiVST2=zA0P6UnBt8nkdiBsWjrSPeiOw@mail.gmail.com>
	<CA+ONtZ4xtpPVwx66oFb9+jx8mT-PMto-6+ktNvuhp=FLnCXDgA@mail.gmail.com>
	<CAJ7S9TXjo1i+4xR2Pa414Rx-Yx+waCvQHCQF8qagwyP6CO8dUA@mail.gmail.com>
	<CA+ONtZ7b5jTHdnZbN8Ru9MeFgECE=j7RL07v8BmDT8FH8bopWw@mail.gmail.com>
	<CAKFQuwYWLB82jh8ZLq91E4w_YLH8=-HBon0R8kUSjw34D4=AUA@mail.gmail.com>
	<CAJ7S9TU1PzTRMBO_7XcbwkVrWXUEHPbbVUv_Q6RLorJnHoPtEg@mail.gmail.com>

On Tue, 2020-11-17 at 22:17 +0100, Olivier Gautherot wrote:
> On Tue, Nov 17, 2020 at 12:05 AM David G. Johnston <david.g.johnston@gmail.com> wrote:
> > On Mon, Nov 16, 2020 at 3:57 PM Atul Kumar <akumar14871@gmail.com> wrote:
> > > I only have this one big table in the database of size 3113 GB with rows 7661353111.
> > > 
> > > Right Now the autovacuum setting for that table is set to
> > > {autovacuum_enabled=true,autovacuum_vacuum_scale_factor=0.2,autovacuum_analyze_scale_factor=0.2}
> > 
> > auto-vacuum doesn't care directly about absolute size, it cares about change (relative to absolute size in many cases, hence the scale factors).
> > 
> > David J.
> > 
> 
> David is correct.
> 
> If it helps, I put together a few thoughts and own experience on a blog:
> https://sites.google.com/gautherot.net/postgresql/vacuum 
> 
> Hope you find it useful.

Then I can chime in with https://www.cybertec-postgresql.com/en/tuning-autovacuum-postgresql/

Yours,
Laurenz Albe






view thread (8+ messages)

Message-ID: <75ca65304d1cb8a4288d1b78cf7adf067dbe354e.camel@cybertec.at>
Permalink:  ../75ca65304d1cb8a4288d1b78cf7adf067dbe354e.camel@cybertec.at/
Also on:    postgresql.org/message-id/75ca65304d1cb8a4288d1b78cf7adf067dbe354e.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, ogautherot@gautherot.net, david.g.johnston@gmail.com, akumar14871@gmail.com
  Subject: Re: autovacuum recommendations for Large tables
  In-Reply-To: <75ca65304d1cb8a4288d1b78cf7adf067dbe354e.camel@cybertec.at>
  References: <CA+ONtZ6Fc5CghGQn1iAwxitK_X_5FoV-nxgAKEFEbvNTYOZ04w@mail.gmail.com> <CAJ7S9TWk6sS4sSA9sbFiVST2=zA0P6UnBt8nkdiBsWjrSPeiOw@mail.gmail.com> <CA+ONtZ4xtpPVwx66oFb9+jx8mT-PMto-6+ktNvuhp=FLnCXDgA@mail.gmail.com> <CAJ7S9TXjo1i+4xR2Pa414Rx-Yx+waCvQHCQF8qagwyP6CO8dUA@mail.gmail.com> <CA+ONtZ7b5jTHdnZbN8Ru9MeFgECE=j7RL07v8BmDT8FH8bopWw@mail.gmail.com> <CAKFQuwYWLB82jh8ZLq91E4w_YLH8=-HBon0R8kUSjw34D4=AUA@mail.gmail.com> <CAJ7S9TU1PzTRMBO_7XcbwkVrWXUEHPbbVUv_Q6RLorJnHoPtEg@mail.gmail.com> <75ca65304d1cb8a4288d1b78cf7adf067dbe354e.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