Re: autovacuum_freeze_max_age

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: autovacuum_freeze_max_age
Дата
Msg-id 7290.1194659477@sss.pgh.pa.us
обсуждение исходный текст
Ответ на autovacuum_freeze_max_age  (Jacques Caron <jc@oxado.com>)
Ответы Re: autovacuum_freeze_max_age  (Jacques Caron <jc@oxado.com>)
Список pgsql-hackers
Jacques Caron <jc@oxado.com> writes:
> I was wondering why autovacuum_freeze_max_age actually can't be set 
> at runtime... guc.c points to varsup.c which says:

Hmm.  The original worry was that different uses might be out of sync,
but right offhand it doesn't look like anything catastrophic would
result from that.  At least not with the current code; it's unclear
whether it'd stay safe in the face of changes.

> I'm not sure I understand what would need to be updated other than 
> the variable itself? Obviously it would mean that it would only take 
> effect the next time SetTransactionIdLimit is called, i.e. the next 
> time VACUUM is run, but I guess this is always better than having to 
> restart the database?

Uh, no, it's called only when we've advanced datfrozenxid,
which is a pretty uncommon event.  So I think the real hole in the
proposal is that there would be a long and not-very-predictable delay
between changing the parameter and having it really take effect.

If there were a big use-case for changing this setting on the fly then
I'd be more worried about it, but I don't see one really ...
        regards, tom lane


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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: [GENERAL] Is "query" a reserved word in 8.3 plpgsql?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Need for advice and direction (again)