]> 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:33 +0000 (12:27 -0400)
commit0a576cd2a9ab8267720709481cdbbd5e06988821
treefbf60225ee5912bdaba796e40002803280d8f2e8
parentafb5fb290e90ecd0ef220810402fee5dbb142585
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