Re: autoanalyze criteria - Mailing list pgsql-general

From Stefan Andreatta
Subject Re: autoanalyze criteria
Date
Msg-id 512B036C.4060601@synedra.com
Whole thread Raw
In response to Re: autoanalyze criteria  (Alban Hertroys <haramrae@gmail.com>)
Responses Re: autoanalyze criteria  (Alban Hertroys <haramrae@gmail.com>)
List pgsql-general
On 02/24/2013 12:52 PM, Alban Hertroys wrote:
> On Feb 23, 2013, at 14:11, Stefan Andreatta <s.andreatta@synedra.com
> <mailto:s.andreatta@synedra.com>> wrote:
>
>> And we are still missing a number for rows updated since the last
>> analyse.
>
> In MVCC an update is an insert + delete, so you already got those numbers.
>
Good point. But because they are an update and a delete, they cancel
each other out and do not show up in pg_stat_user_tables.n_live_tup -
and that's the only value for which we have a reference value from the
time of the last analyze (pg_class.reltuples).

On the other hand, I might again miss something out. I would be most
happy if anybody could come up with a query to estimate autoanalyze
trigger conditions from the values we have available now.

Stefan

pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [JDBC] can't access through SSL
Next
From: Alban Hertroys
Date:
Subject: Re: autoanalyze criteria