]> git.ipfire.org Git - thirdparty/postgresql.git/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:39 +0000 (12:27 -0400)
commit0ed4a47fbfbd0f22806dc14f70dcc42de07ce9f1
treee78813ac397cdf2a48062f62dc4de36ce77dca65
parent3e406417b8da9fe7139374f35cab5f9d55881760
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