Re: kevent latch paths don't handle postmaster death well - Mailing list pgsql-hackers

From Tom Lane
Subject Re: kevent latch paths don't handle postmaster death well
Date
Msg-id 3625898.1602704431@sss.pgh.pa.us
Whole thread Raw
In response to Re: kevent latch paths don't handle postmaster death well  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: kevent latch paths don't handle postmaster death well  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> The process exit event is like an 'edge', not a 'level'... hmm.  It
> might be enough to set report_postmaster_not_running = true the first
> time it tells us so if we try to wait again we'll treat it like a
> level.  I will look into it later today.

Seems like having that be per-WaitEventSet state is also not a great
idea --- if we detect PM death while waiting on one WES, and then
wait on another one, it won't work.  A plain process-wide static
variable would be a better way I bet.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: jit and explain nontext
Next
From: Heikki Linnakangas
Date:
Subject: Re: kevent latch paths don't handle postmaster death well