Re: Autovacuum not functioning for large tables but it is working for few other small tables.

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: M Tarkeshwar Rao <m(dot)tarkeshwar(dot)rao(at)ericsson(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, Neeraj Gupta G <neeraj(dot)g(dot)gupta(at)ericsson(dot)com>, Atul Parashar <atul(dot)parashar(at)ericsson(dot)com>, Shishir Singh <shishir(dot)singh(at)globallogic(dot)com>, Ankit Sharma <ankit(dot)sharma10(at)globallogic(dot)com>
Subject: Re: Autovacuum not functioning for large tables but it is working for few other small tables.
Date: 2020-12-16 18:18:00
Message-ID: CAMkU=1ymu9dTz99ALJA-kwDkQzp33Q9gfKS374+kxbJB4v65vg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

On Wed, Dec 16, 2020 at 6:55 AM M Tarkeshwar Rao <
m(dot)tarkeshwar(dot)rao(at)ericsson(dot)com> wrote:

> ...
>

>
> All the threshold level requirements for autovacuum was meet and there are
> about Million’s of dead tuples but autovacuum was unable to clear them,
> which cause performance issue on production server.
>

It might be helpful for us to see what data you are looking at to reach
this conclusion.

>
>
> Is autovacuum not working against large sized tables or Is there any
> parameters which need to set to make autovacuum functioning?
>

Autovacuum is not inherently broken for large tables. But vacuuming them
takes longer than for small tables. If it is frequently interrupted by
things like CREATE INDEX, ALTER TABLE, or database shutdown and restart,
then it might never get through the entire table without interruption. If
it is getting interrupted, you should see messages in the log file about
it. You can also check pg_stat_user_tables to see when it was last
successfully (to completion) auto vacuumed, and on new enough versions you
can look in pg_stat_progress_vacuum to monitor the vacuuming while it
occurs.

Cheers,

Jeff

>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jack Orenstein 2020-12-16 19:44:25 Very large table: Partition it or not?
Previous Message Michael Lewis 2020-12-16 15:28:04 Re: Autovacuum not functioning for large tables but it is working for few other small tables.

Browse pgsql-performance by date

  From Date Subject
Next Message Tomas Vondra 2020-12-17 01:46:16 Re: Autovacuum not functioning for large tables but it is working for few other small tables.
Previous Message Michael Lewis 2020-12-16 15:28:04 Re: Autovacuum not functioning for large tables but it is working for few other small tables.