pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve test coverage for LISTEN/NOTIFY.
Date: Sat, 23 Nov 2019 22:30:26 +0000
Message-ID: <E1iYdv8-0002TH-Uj@gemulon.postgresql.org> (raw)

Improve test coverage for LISTEN/NOTIFY.

Back-patch commit b10f40bf0 into older branches.  This adds reporting
of NOTIFY messages to isolationtester.c, and extends the async-notify
test to include direct tests of basic NOTIFY functionality.

This provides useful infrastructure for testing a bug fix I'm about
to back-patch, and there seems no good reason not to have better tests
of LISTEN/NOTIFY in the back branches.  The commit's survived long
enough in HEAD to make it unlikely that it will cause problems.

Back-patch as far as 9.6.  isolationtester.c changed too much in 9.6
to make it sane to try to fix older branches this way, and I don't
really want to back-patch those changes too.

Discussion: https://postgr.es/m/31304.1564246011@sss.pgh.pa.us

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7d4c3118137a37dddcefe28145a3a2e4bccf59fd

Modified Files
--------------
src/test/isolation/expected/async-notify.out | 97 ++++++++++++++++++++++++++--
src/test/isolation/isolationtester.c         | 87 +++++++++++++++----------
src/test/isolation/specs/async-notify.spec   | 76 +++++++++++++++++++---
3 files changed, 210 insertions(+), 50 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1iYdv8-0002TH-Uj@gemulon.postgresql.org>
Permalink:  ../E1iYdv8-0002TH-Uj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iYdv8-0002TH-Uj@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve test coverage for LISTEN/NOTIFY.
  In-Reply-To: <E1iYdv8-0002TH-Uj@gemulon.postgresql.org>
  References: <E1iYdv8-0002TH-Uj@gemulon.postgresql.org>

* 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