Re: Autovacuum breakage from a734fd5d1

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Autovacuum breakage from a734fd5d1
Дата
Msg-id CAB7nPqSk56smm53s8OQZ3uqDHVmdZi=wsSKMj672wAE+B8PfQA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Autovacuum breakage from a734fd5d1  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Autovacuum breakage from a734fd5d1
Список pgsql-hackers
On Mon, Nov 28, 2016 at 10:02 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Sun, Nov 27, 2016 at 5:45 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> So the problem seems to be confirmed to exist, but be of low probability
>> and low consequences, in back branches.  I think we only need to fix it in
>> HEAD.  The lock acquisition and status recheck that I proposed before
>> should be sufficient.
>
> Thanks for digging into this.  I failed to notice while reviewing that
> the way we were printing the message had changed a bit in the new
> code, and I just totally overlooked the existing locking hazards.
> Oops.

Sorry for the late reply.

In order to reproduce the failure I have just inserted a manual
pg_usleep before looping through the list of orphan_oids, and after
dropping manually from another session a couple of orphaned temporary
tables I was able to see the failure. Attached is a proposal of patch.
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Autovacuum breakage from a734fd5d1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Mail thread references in commits