Re: 8.1.8 autovacuum missing databases

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: 8.1.8 autovacuum missing databases
Дата
Msg-id 20080430161942.GC21286@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: 8.1.8 autovacuum missing databases  (Ian Westmacott <ianw@intellivid.com>)
Ответы Re: 8.1.8 autovacuum missing databases  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Ian Westmacott wrote:
> On Tue, 2008-04-29 at 17:12 -0400, Alvaro Herrera wrote:
> > Can you verify whether age(pg_database.datfrozenxid) is shrinking after
> > vacuuming?  If the age() of a database is higher than the applicable
> > max_freeze_age, then it will always be chosen.
>
> One of the databases is about 1.5TB, so that could take a while.
> Anything else I could look at in the meantime?  The age of these
> databases right now is about 290039577.  Also, autovacuum doesn't always
> choose the same DB, it alternates between template1 and one of mine --
> going back through a couple of months of logs I don't see it ever
> choosing the same one twice in a row.

Right -- if you have two databases over the wraparound edge, it will
alternate between them.

I still think that the autovac is dying before completing the task.  Did
you investigate whether there are "ERROR" messages coming from
autovacuum?  No PG crashes would happen.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Thomas Bräutigam
Дата:
Сообщение: Re: Remove Postgres from Solaris 10
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 8.1.8 autovacuum missing databases