Content-Length: 261191 | pFad | http://github.com/postgrespro/postgres/commit/6d41dd045ada28ee14182112fc4cf50fb3879d28

A6 Change PostgresNode::connect_fails() to never send down queries · postgrespro/postgres@6d41dd0 · GitHub
Skip to content

Commit 6d41dd0

Browse files
committed
Change PostgresNode::connect_fails() to never send down queries
This type of failure is similar to what has been fixed in c757a3d, where an authentication failure combined with psql pushing a command down its communication pipe causes a test failure. This routine is designed to fail, so sending a query has little sense anyway. Per buildfarm members gaur and hoverfly, based on an analysis and fix from Tom Lane. Discussion: https://postgr.es/m/513200.1617634642@sss.pgh.pa.us
1 parent f6b8f19 commit 6d41dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ sub connect_fails
19381938
# have set up things properly, and this should not block.
19391939
my ($ret, $stdout, $stderr) = $self->psql(
19401940
'postgres',
1941-
"SELECT \$\$connected with $connstr\$\$",
1941+
undef,
19421942
extra_params => ['-w'],
19431943
connstr => "$connstr");
19441944

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/6d41dd045ada28ee14182112fc4cf50fb3879d28

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy