Re: COUNT(*) дофига весит - Mailing list pgsql-ru-general

From Alex Gorbachenko
Subject Re: COUNT(*) дофига весит
Date
Msg-id 20080417103717.303f9d80@satellite.immo
Whole thread Raw
In response to Re: COUNT(*) дофига весит  (silly_sad <sad@bankir.ru>)
Responses Re: COUNT(*) дофига весит
List pgsql-ru-general
On Wed, 16 Apr 2008 13:48:42 +0400
silly_sad wrote:

>Объясните пожалуйста, в чем разница между авто и еженочным vaccuum
>analyze?

в том, что autovacuum проверяет количество измененных
записей в таблицах, и запускается в случае, если это количество >
некоего числа. что позволяет "размазать" вакуум по времени. по моему в
документации это написано довольно подробно.

цитата:

"When enabled, the autovacuum daemon runs periodically and checks for
tables that have had a large number of inserted, updated or deleted
tuples."

"Tables whose relfrozenxid value is more than autovacuum_freeze_max_age
transactions old are always vacuumed. Otherwise, two conditions are
used to determine which operation(s) to apply. If the number of
obsolete tuples since the last VACUUM exceeds the "vacuum threshold",
the table is vacuumed."

--
np: Alter Bridge - Before Tomorrow Comes

Attachment

pgsql-ru-general by date:

Previous
From: Alex Gorbachenko
Date:
Subject: Re: COUNT(*) дофига весит
Next
From: silly_sad
Date:
Subject: Re: COUNT(*) дофига весит