Re: autovacuum ignore tables

Поиск
Список
Период
Сортировка
От Sriram Dandapani
Тема Re: autovacuum ignore tables
Дата
Msg-id 6992E470F12A444BB787B5C937B9D4DF060E5B49@ca-mail1.cis.local
обсуждение исходный текст
Ответ на autovacuum ignore tables  ("Sriram Dandapani" <sdandapani@counterpane.com>)
Ответы Re: autovacuum ignore tables  ("Matthew T. O'Connor" <matthew@zeut.net>)
Re: autovacuum ignore tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
The only issue I have with autovacuum is the fact that I have to briefly
stop/restart postgres every couple of days, which kills autovacuum and
it has no memory of previous work done. I work with several databases
with partitioned tables having high daily volume. Dropping partitioned
tables locks out jdbc inserts and the drop command itself goes into a
WAIT state. Hence, I have to stop postgres,update pg_hba.conf to prevent
access,restart postgres,drop tables and update pg_hba to allow
access(Crazy, but I have no choice because Postgres deadlocks on drop
child tables while inserts happen on the parent)

-----Original Message-----
From: Matthew T. O'Connor [mailto:matthew@zeut.net]
Sent: Thursday, September 28, 2006 9:22 PM
To: Sriram Dandapani
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] autovacuum ignore tables

Sriram Dandapani wrote:
>
> If I were to specify in the pg_autovacuum catalog that certain high
> volume partitioned tables(that get dropped daily) be ignored, then
> when autovacuum finishes, will it update the transaction id wraparound
> counter (this way, I can get autovacuum to finish quickly )
>
> OR
>
> Will I still need to periodically do vacuumdb -a to take care of the
> wraparound problem.
>

You don't need to do a manual vacuumdb -a since autovacuum will do this
once it decides you are getting too close to the wraparound point. I
believe this has been improved in the upcoming 8.2 release where
autovacuum no longer need to vacuum the whole database at once, rather
XID wraparound is now tracked on a per table basis.


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

Предыдущее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: autovacuum ignore tables
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [JDBC] number of transactions doubling