Re: We need to log aborted autovacuums

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: We need to log aborted autovacuums
Дата
Msg-id 9874.1295201283@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: We need to log aborted autovacuums  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> I'm fairly confused by this thread.

> We *do* emit a message when we cancel an autovacuum task. We went to a
> lot of trouble to do that. The message is DEBUG2, and says
> "sending cancel to blocking autovacuum pid =".

That doesn't necessarily match one-to-one with actual cancellations,
nor does it cover the case Greg is on about at the moment of an AV
worker being blocked indefinitely because it can't get the table
lock in the first place.

It might be an adequate substitute, but on the whole I agree with
the idea that it'd be better to have autovacuum log when it actually
cancels an operation, not when someone tries to cancel one.
        regards, tom lane


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_basebackup for streaming base backups
Следующее
От: Greg Smith
Дата:
Сообщение: Re: We need to log aborted autovacuums