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: Make PostgresNode.pm's poll_query_until() more chatty about fail
Date: Tue, 16 Oct 2018 16:32:52 +0000
Message-ID: <E1gCSH6-00008u-GH@gemulon.postgresql.org> (raw)

Make PostgresNode.pm's poll_query_until() more chatty about failures.

Reporting only the stderr is unhelpful when the problem is that the
server output we're getting doesn't match what was expected.  So we
should report the query output too; and just for good measure, let's
print the query we used and the output we expected.

Back-patch to 9.5 where poll_query_until was introduced.

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0a576cd2a9ab8267720709481cdbbd5e06988821

Modified Files
--------------
src/test/perl/PostgresNode.pm | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1gCSH6-00008u-GH@gemulon.postgresql.org>
Permalink:  ../E1gCSH6-00008u-GH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gCSH6-00008u-GH@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: Make PostgresNode.pm's poll_query_until() more chatty about fail
  In-Reply-To: <E1gCSH6-00008u-GH@gemulon.postgresql.org>
  References: <E1gCSH6-00008u-GH@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