pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Testing LISTEN/NOTIFY more effectively
Date: Sat, 27 Jul 2019 21:08:50 -0400
Message-ID: <25695.1564276130@sss.pgh.pa.us> (raw)
In-Reply-To: <20190728005418.j4olh2bsabgbstpg@alap3.anarazel.de>
References: <31304.1564246011@sss.pgh.pa.us>
<20190727174202.jiwr4jgp3x7gvp22@alap3.anarazel.de>
<5720.1564249986@sss.pgh.pa.us>
<29162.1564266052@sss.pgh.pa.us>
<20190727231826.g34yqkzj53ey46tl@alap3.anarazel.de>
<10166.1564270037@sss.pgh.pa.us>
<20190727235105.7dgzj5vhaok547ut@alap3.anarazel.de>
<20277.1564272133@sss.pgh.pa.us>
<20190728005418.j4olh2bsabgbstpg@alap3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> I wonder if there aren't similar dangers around the notify handling. In
> your patch we don't print them particularly eagerly. Doesn't that also
> open us up to timing concerns?
I think probably not, because of the backend-side restrictions on when
notify messages will be sent. The corresponding case for the NOTICE
bug we just fixed would be if a backend sent a NOTIFY before blocking;
but it can't do that internally to a transaction, and anyway the proposed
test script isn't doing anything that tricky.
I did spend some time thinking about how isolationtester might report
notifys that are sent spontaneously (without any "triggering" query)
but I didn't feel that that was worth messing with. We'd have to
have the program checking all the connections not just the one that's
running what it thinks is the currently active step.
We might be approaching a time where it's worth scrapping the
isolationtester logic and starting over. I'm not volunteering though.
regards, tom lane
view thread (18+ messages) latest in thread
Message-ID: <25695.1564276130@sss.pgh.pa.us> Permalink: ../25695.1564276130@sss.pgh.pa.us/ Also on: postgresql.org/message-id/25695.1564276130@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 using the --to and --cc options: reply via email To: pgsql-hackers@postgresql.org Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, pgsql-hackers@lists.postgresql.org Subject: Re: Testing LISTEN/NOTIFY more effectively In-Reply-To: <25695.1564276130@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