pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Andrey <parihaaraka@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: NOTIFY does not work as expected
Date: Fri, 19 Oct 2018 19:53:06 -0400
Message-ID: <20599.1539993186@sss.pgh.pa.us> (raw)
In-Reply-To: <20181019231435.ovm5jd7zwpj3zs3a@alap3.anarazel.de>
References: <CAMkU=1x5b-JqAp951s8vpSLbwx3DmrVDM_pR1ch79hSmBdoQQA@mail.gmail.com>
	<CAMkU=1yxjDmqpFGMN04EXz86XoQUufQfh5zTscwbvdCikPosEA@mail.gmail.com>
	<20180704183055.hqlqm3ramerybzvd@alap3.anarazel.de>
	<CAMkU=1zCfdxGBcm7N=Twr7bz4KTmYZbEhq=f-VaNmP6d4ry-Tw@mail.gmail.com>
	<CAOYf6edT_0fFAYtnxFiX8b_AEjCn4qcVEH1-F21AedksuWvB5g@mail.gmail.com>
	<29914.1539902374@sss.pgh.pa.us>
	<20181018224608.6d4v2fadyu3vrbx2@alap3.anarazel.de>
	<31090.1539904064@sss.pgh.pa.us>
	<16416.1539970591@sss.pgh.pa.us>
	<20181019204542.jemuckjxo7ga7q5g@alap3.anarazel.de>
	<20181019231435.ovm5jd7zwpj3zs3a@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2018-10-19 13:45:42 -0700, Andres Freund wrote:
>> I don't immediately see a problem with changing this for reads.

> One argument against changing it, although not a very strong one, is
> that processing a proc die even when non-blocking prevents us from
> processing commands like a client's X/terminate even if we already have
> the necessary input.

I'm pretty skeptical of these arguments, as they depend on assumptions
that there are no CHECK_FOR_INTERRUPTS calls anywhere in the relevant
code paths outside be-secure.c.  Even if that's true today, it doesn't
seem like something to depend on.

However, there's definitely merit in the idea that we shouldn't change
the ProcDie behavior if we don't have to in order to fix the NOTIFY
bug --- especially since I'd like to backpatch this.  So if you're
happy with the revised patch, I can go with that one.

			regards, tom lane




view thread (24+ messages)  latest in thread

Message-ID: <20599.1539993186@sss.pgh.pa.us>
Permalink:  ../20599.1539993186@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20599.1539993186@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, parihaaraka@gmail.com, jeff.janes@gmail.com
  Subject: Re: NOTIFY does not work as expected
  In-Reply-To: <20599.1539993186@sss.pgh.pa.us>
  References: <CAMkU=1x5b-JqAp951s8vpSLbwx3DmrVDM_pR1ch79hSmBdoQQA@mail.gmail.com> <CAMkU=1yxjDmqpFGMN04EXz86XoQUufQfh5zTscwbvdCikPosEA@mail.gmail.com> <20180704183055.hqlqm3ramerybzvd@alap3.anarazel.de> <CAMkU=1zCfdxGBcm7N=Twr7bz4KTmYZbEhq=f-VaNmP6d4ry-Tw@mail.gmail.com> <CAOYf6edT_0fFAYtnxFiX8b_AEjCn4qcVEH1-F21AedksuWvB5g@mail.gmail.com> <29914.1539902374@sss.pgh.pa.us> <20181018224608.6d4v2fadyu3vrbx2@alap3.anarazel.de> <31090.1539904064@sss.pgh.pa.us> <16416.1539970591@sss.pgh.pa.us> <20181019204542.jemuckjxo7ga7q5g@alap3.anarazel.de> <20181019231435.ovm5jd7zwpj3zs3a@alap3.anarazel.de> <20599.1539993186@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