Re: autovacuum and immediate shutdown issues

Поиск
Список
Период
Сортировка
От Brad Nicholson
Тема Re: autovacuum and immediate shutdown issues
Дата
Msg-id 1255978367.4316.64.camel@bnicholson-desktop
обсуждение исходный текст
Ответ на Re: autovacuum and immediate shutdown issues  (Christophe Pettus <xof@thebuild.com>)
Ответы Re: autovacuum and immediate shutdown issues
Список pgsql-general
On Mon, 2009-10-19 at 11:35 -0700, Christophe Pettus wrote:
> On Oct 19, 2009, at 11:26 AM, Scott Marlowe wrote:
> > That could be a pretty bad worst case scenario for certain types of
> > tables / usage patterns.
>
> Given that (presumably) the database server is not failing repeatedly
> without some kind of operator notification, isn't it at least somewhat
> reasonable to just make "start an vacuum upon recovery from an
> immediate shutdown" an operational procedure, rather than something PG
> does automatically?
>


It's not a vacuum you want, it's an analyze.  Once the stats are back,
autovacuum will vacuum accordingly.

autoanalyze will automatically analyze new tables when they don't have
stats.  It seems logical that it should handle this case where the table
also does not have stats.

--
Brad Nicholson  416-673-4106
Database Administrator, Afilias Canada Corp.



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

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: Re: autovacuum and immediate shutdown issues
Следующее
От: Tom Lane
Дата:
Сообщение: Re: autovacuum and immediate shutdown issues