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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5f920def84a0df35e3a455068ba0ee0df0f45493
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-10-16T16:27:26Z
Releases: 11.1
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

Files

PathChange+/−
src/test/perl/PostgresNode.pm modified +12 −3

Discussion