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-00008x-GG@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
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/94ccffb2b5b22408f0f5395b820bcfa5c1b172d3
Modified Files
--------------
src/bin/pg_rewind/RewindTest.pm | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
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-00008x-GG@gemulon.postgresql.org>
References: <E1gCSH6-00008x-GG@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