Re: pg_autovacuum / pg_class

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pg_autovacuum / pg_class
Дата
Msg-id 20061026125237.GL9340@alvh.no-ip.org
обсуждение исходный текст
Ответ на pg_autovacuum / pg_class  (Tomas Vondra <tv@fuzzy.cz>)
Ответы Re: pg_autovacuum / pg_class
Re: pg_autovacuum / pg_class
Список pgsql-general
Tomas Vondra wrote:
> Hello,
>
> I have a simple question about auto-vacuuming. We are running a Postgres
> 8.1 and I've noticed that some of the tables are not analyzed by the
> pg_autovacuum daemon. That is - when I select the rows from pg_class,
> all the important values (relpages, reltuples) are 0.
>
> I've noticed this in case of newly created tables (that is not older
> than 1 month). My 'theory' is this - the table has to be analyzed by
> hand at the beginning, otherwise the pg_autovacuum won't process it. Am
> I right?

Hum.  Just by inserting tuples into those tables, autovacuum should "be
able to see" them.  Autovacuum won't touch, and indeed won't even
consider, tables that are just created.  But as soon as you insert a
single tuple in them, it will start to consider vacuuming or analyzing
them.

If you insert a hundred thousand rows in a table, autovacuum most
certainly should analyze it.  If it's not, we'd really like to know why.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Hannes Dorbath
Дата:
Сообщение: Re: DBI-Link, Oracle, database encoding
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: Problem with 8.1.5 RPMs for Redhat AS 4