Is this a bug in auto vacuum worker?

From: CNG L <congnanluo(at)gmail(dot)com>
To: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Is this a bug in auto vacuum worker?
Date: 2019-01-08 18:47:01
Message-ID: CAJ3ejTw2_U7CfC6-eHuWgJaBGy=Fc5RCnVFnmiZbW3GBZnt38g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

In AutoVacWorkerMain(), the code calls on_shmem_exit(FreeWorkInfo,0) and
then kill() to send SIGUSR2 to autovacuum launcher process. In
FreeWorkInfo() it sets AutoVacuumShmem->av_signal[AutoVacRebalance] = true.
But, is it possible that when autovacuum launcher’s SIGUSR2 handler checks
av_signal[AutoVacRebalance], FreeWorkInfo() haven’t set this flag yet and
thus autovacuum launcher will miss the AutoVacRebalance event?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-01-09 00:36:06 Re: BUG #15572: Misleading message reported by "Drop function operation" on DB with functions having same name
Previous Message Bartosz Polnik 2019-01-08 09:45:23 Re: BUG #15577: Query returns different results when executed multiple times