Re: Screwy Statistics...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Screwy Statistics...
Дата
Msg-id 12610.1031597128@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Screwy Statistics...  ("Glen Parker" <glenebob@nwlink.com>)
Список pgsql-general
"Glen Parker" <glenebob@nwlink.com> writes:
> First, shouldn't statistics have some clue how many rows might be in the
> table, at least right after an analyze?

Only approximately -- VACUUM or VACUUM ANALYZE will generate an
exact-as-of-the-moment reltuples entry, but just ANALYZE doesn't,
because it doesn't do a complete table scan.

We have an open bug report about ANALYZE's guesstimate sometimes being
further off than one would like.  This happens because it estimates
the entire file's tuples-per-page fill factor from that of the first
few pages, and of course that could be radically wrong.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: pg_restore not able to restore files larger that 2.4GB
Следующее
От: Tom Lane
Дата:
Сообщение: 7.3 function permissions (was Re: Making small bits of code available)