Re: Autovacuum/Analyze Doesn't seem to be running properly

From: Chris Kim <christopherkim22(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Autovacuum/Analyze Doesn't seem to be running properly
Date: 2020-03-10 17:38:25
Message-ID: CAAEyfN4Qf_W+wao=wbT63xt59eex6GdhHths9_S0gLYUxpzs5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks anyone for your help. This has helped me better understand
autoanalyze.
Thanks,
Chris

On Wed, Mar 4, 2020, 1:53 PM Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:

> On 2020-Mar-04, Chris Kim wrote:
>
> > In my testing it looks like pg_stat_reset was ran, but I haven't been
> able
> > to verify this from my logs.
> >
> > Is there another way the stats could get reset?
>
> Yes, a crash/restart does that.
>
> > Does autovacuum use the stats from pg_stat_user_table meaning if there 50
> > live tuples and 1000 dead tuples, but then the stats are reset, those
> dead
> > tuples would never get cleaned up until there was new activity on that
> > table?
>
> That's correct.
>
> --
> Álvaro Herrera https://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Asomba Djala 2020-03-12 09:17:24 wal-g back-list returns no backups
Previous Message Ron 2020-03-07 21:13:26 Re: duplicate key value violates unique constraint