Re: Autovacuum worker doesn't immediately exit on postmaster death - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Autovacuum worker doesn't immediately exit on postmaster death
Date
Msg-id 20201029180554.GO16415@tamriel.snowman.net
Whole thread Raw
In response to Re: Autovacuum worker doesn't immediately exit on postmaster death  (Andres Freund <andres@anarazel.de>)
Responses Re: Autovacuum worker doesn't immediately exit on postmaster death  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Greetings,

* Andres Freund (andres@anarazel.de) wrote:
> On 2020-10-29 12:27:53 -0400, Tom Lane wrote:
> > Maybe put a check into vacuum_delay_point, and poll the pipe when we're
> > about to sleep anyway?
>
> Perhaps we should just replace the pg_usleep() with a latch wait?

I'm not sure why, but I had the thought that we already had done that,
and was a bit surprised that it wasn't that way, so +1 from my part.

I do think it'd be good to find a way to check every once in a while
even when we aren't going to delay though.  Not sure what the best
answer there is.

Thanks,

Stephen

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Autovacuum worker doesn't immediately exit on postmaster death
Next
From: Andres Freund
Date:
Subject: Re: Online checksums verification in the backend