Re: Most efficient report of number of records in all tables?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Most efficient report of number of records in all tables?
Дата
Msg-id b42b73150702261820q686b36edhea875360d1b502ad@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Most efficient report of number of records in all tables?  ("D. Dante Lorenso" <dante@lorenso.com>)
Список pgsql-general
On 2/27/07, D. Dante Lorenso <dante@lorenso.com> wrote:
> Dann Corbit wrote:
> > If you only need a cardinality estimate, then pg_class.reltuples may be
> > of help (it will be accurate to when the last vacuum was performed).
> >
>
> Last vacuum ... how does that work with autovacuum?

'analyze' updates pg_class.reltuples also.  It is also cheaper than
vacuum...you can force a fresh one by doing an analyze before you do
your sweep.

merlin

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

Предыдущее
От: George Nychis
Дата:
Сообщение: Re: dropping a master table and all of its partitions?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: preventing ALTER TABLE RENAME from changing view definitions?