On 02/24/2013 12:52 PM, Alban Hertroys wrote: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 |