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: Andres Freund <andres@anarazel.de>
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: Thu, 15 Oct 2020 17:40:51 -0400
Message-ID: <3896447.1602798051@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKG+WFxLPk95DMHmuP=1Q9NWSc70eKEDGGESang-TRpF0tg@mail.gmail.com>
References: <3624029.1602701929@sss.pgh.pa.us>
	<CA+hUKGKvy_o=gXkbDEnpmJL-PcihAv272v-R+tpX3SdA+NdGVg@mail.gmail.com>
	<3625898.1602704431@sss.pgh.pa.us>
	<CA+hUKGJ8aHjyxccsn3z4NOpnWBdfUSmzVPm6uc_B63ODnQvvPA@mail.gmail.com>
	<20201014225942.oya7ncon63ltwrnq@alap3.anarazel.de>
	<3638494.1602717275@sss.pgh.pa.us>
	<CA+hUKG+mbvd5C3hz-K_0YMYsJdGRazsZKpAgoB-UUcZtgZcvmQ@mail.gmail.com>
	<CA+hUKGKhsCOmCKTn4__8QYggVpnAaRpMf07M8BfwE+HzOLozwg@mail.gmail.com>
	<CA+hUKG+WFxLPk95DMHmuP=1Q9NWSc70eKEDGGESang-TRpF0tg@mail.gmail.com>

Thomas Munro <thomas.munro@gmail.com> writes:
> I couldn't resist digging further into the Apple sources to figure out
> what was going on there, and I realised that the code path I was
> looking at can only report EACCES if you asked for NOTE_EXITSTATUS,
> which appears to be an Apple extension to the original FreeBSD kqueue
> system designed to let you receive the exit status of the monitored
> process.  That is indeed much more privileged information, and it's
> only allowed for your own children.

Ah.

> So it's possible that commit
> 70516a17 was a waste of electrons, but I don't think it can hurt;

Yeah, I'm not inclined to revert it.  If we did get that errno,
it'd be hard to interpret it in any way that didn't involve the
postmaster being gone.

			regards, tom lane





view thread (14+ messages)

Message-ID: <3896447.1602798051@sss.pgh.pa.us>
Permalink:  ../3896447.1602798051@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3896447.1602798051@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, andres@anarazel.de, hlinnaka@iki.fi
  Subject: Re: kevent latch paths don't handle postmaster death well
  In-Reply-To: <3896447.1602798051@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> <CA+hUKGJ8aHjyxccsn3z4NOpnWBdfUSmzVPm6uc_B63ODnQvvPA@mail.gmail.com> <20201014225942.oya7ncon63ltwrnq@alap3.anarazel.de> <3638494.1602717275@sss.pgh.pa.us> <CA+hUKG+mbvd5C3hz-K_0YMYsJdGRazsZKpAgoB-UUcZtgZcvmQ@mail.gmail.com> <CA+hUKGKhsCOmCKTn4__8QYggVpnAaRpMf07M8BfwE+HzOLozwg@mail.gmail.com> <CA+hUKG+WFxLPk95DMHmuP=1Q9NWSc70eKEDGGESang-TRpF0tg@mail.gmail.com> <3896447.1602798051@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