]> granicus.if.org Git - postgresql/commit
Make PostgresNode.pm's poll_query_until() more chatty about failures.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Oct 2018 16:27:14 +0000 (12:27 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Oct 2018 16:27:14 +0000 (12:27 -0400)
commitc015ccb306ec81bca3023818c9cf0113cae25be1
tree67b6cde28e66772aea8edee921468c6b897ed918
parent17d6a8fb764c95536c08742a7f94705e9774db05
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
src/test/perl/PostgresNode.pm