]> 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:26 +0000 (12:27 -0400)
commit5f920def84a0df35e3a455068ba0ee0df0f45493
tree3b343e16f5e986182e61b4c3dc0c079d76616f4c
parent6d2c760b059e4f16e2176fcfea6068d58cc3bf30
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