]> 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:11 +0000 (17:29 -0400)
commit4ed9dacb2ff35e2fa8a0dc9b5706a8c9c5017c2e
tree6238c9caaa66e5d3885a75a1814f7bc64abcf122
parent75d66d10e0e35529a80d3442081150fcf501bb7d
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