]> git.ipfire.org Git - thirdparty/postgresql.git/commit
In PostgresNode.pm, don't pass SQL to psql on the command line
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 3 Jun 2021 20:08:33 +0000 (16:08 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 3 Jun 2021 21:29:52 +0000 (17:29 -0400)
commitb5bd1351fd7b967259cd505199422c28ed2ccd98
treeee203e94d1d6878ae1b5aa47b64e806027ada1d3
parentdbc9dbba56529a915effa6078f9303343aedf3f1
In PostgresNode.pm, don't pass SQL to psql on the command line

The Msys shell mangles certain patterns in its command line, so avoid
handing arbitrary SQL to psql on the command line and instead use
IPC::Run's redirection facility for stdin. This pattern is already
mostly whats used, but query_poll_until() was not doing the right thing.

Problem discovered on the buildfarm when a new TAP test failed on msys.
src/test/perl/PostgresNode.pm