pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: kevent latch paths don't handle postmaster death well
Date: Wed, 14 Oct 2020 15:40:31 -0400
Message-ID: <3625898.1602704431@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGKvy_o=gXkbDEnpmJL-PcihAv272v-R+tpX3SdA+NdGVg@mail.gmail.com>
References: <3624029.1602701929@sss.pgh.pa.us>
	<CA+hUKGKvy_o=gXkbDEnpmJL-PcihAv272v-R+tpX3SdA+NdGVg@mail.gmail.com>

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





view thread (14+ messages)  latest in thread

Message-ID: <3625898.1602704431@sss.pgh.pa.us>
Permalink:  ../3625898.1602704431@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3625898.1602704431@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com, hlinnaka@iki.fi
  Subject: Re: kevent latch paths don't handle postmaster death well
  In-Reply-To: <3625898.1602704431@sss.pgh.pa.us>
  References: <3624029.1602701929@sss.pgh.pa.us> <CA+hUKGKvy_o=gXkbDEnpmJL-PcihAv272v-R+tpX3SdA+NdGVg@mail.gmail.com> <3625898.1602704431@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox