Re: vacuum hint on elog

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: vacuum hint on elog
Дата
Msg-id 25395.1106428859@sss.pgh.pa.us
обсуждение исходный текст
Ответ на vacuum hint on elog  (Neil Conway <neilc@samurai.com>)
Ответы Re: vacuum hint on elog  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> It occurred to me that if we elog(ERROR) during VACUUM, the vacuum
> activity hint will not be reset.

The code beginning at freelist.c line 645 is intended to deal with this.

> Attached is a patch which resets the vacuum activity hint in
> AbortTransaction().

I dislike exposing such low-level issues to AbortTransaction().
If an explicit reset is needed, there should be something like
an AtAbort_Buffers() call that does this as well as any other
low-level issues needed (eg AbortBufferIO()).  Note that you
missed AbortSubTransaction() anyway.

            regards, tom lane

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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: pg_autovacuum/Win32 Fixes
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [DOCS] bug in 8.0 manual, section 37.6, PL/Perl Triggers