Re: questions about a table's row estimates - Mailing list pgsql-general

From Tom Lane
Subject Re: questions about a table's row estimates
Date
Msg-id 11912.1265912246@sss.pgh.pa.us
Whole thread Raw
In response to Re: questions about a table's row estimates  (Ben Chobot <bench@silentmedia.com>)
List pgsql-general
Ben Chobot <bench@silentmedia.com> writes:
> And unfortunately, Tom, we're not resetting stats counters. :(

Mph.  Well, the other thing that comes to mind is that n_live_tup
(and n_dead_tup) is typically updated by ANALYZE, but only to an
estimate based on ANALYZE's partial sample of the table.  If the
sample isn't very representative then it might be far off.
How does n_live_tup compare to an actual COUNT(*) count?

            regards, tom lane

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: problems maintaining boolean columns in a large table
Next
From: Tom Lane
Date:
Subject: Re: pg_dump superflous warning message