Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTYZw-0000V9-KJ for pgsql-committers@arkaria.postgresql.org; Mon, 05 Apr 2021 23:24:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTYZO-0005bt-PD for pgsql-committers@arkaria.postgresql.org; Mon, 05 Apr 2021 23:23:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTYZO-0005bm-HS for pgsql-committers@lists.postgresql.org; Mon, 05 Apr 2021 23:23:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTYZM-0000gS-G2 for pgsql-committers@lists.postgresql.org; Mon, 05 Apr 2021 23:23:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 135NNhCO933131; Mon, 5 Apr 2021 19:23:43 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Refactor all TAP test suites doing connection checks In-reply-to: <932059.1617663467@sss.pgh.pa.us> References: <513200.1617634642@sss.pgh.pa.us> <932059.1617663467@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 05 Apr 2021 18:57:47 -0400" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <933112.1617664999.0@sss.pgh.pa.us> Date: Mon, 05 Apr 2021 19:23:43 -0400 Message-ID: <933130.1617665023@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <933112.1617664999.1@sss.pgh.pa.us> What does seem to fix it reliably is the attached. regards, tom lane ------- =_aaaaaaaaaa0 Content-Type: text/x-diff; name="dont-send-query-in-connect_fails.patch"; charset="us-ascii" Content-ID: <933112.1617664999.2@sss.pgh.pa.us> Content-Description: dont-send-query-in-connect_fails.patch diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index bbde34c..07a9167 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -1938,7 +1938,7 @@ sub connect_fails # have set up things properly, and this should not block. my ($ret, $stdout, $stderr) = $self->psql( 'postgres', - "SELECT \$\$connected with $connstr\$\$", + undef, # don't try to send a query extra_params => ['-w'], connstr => "$connstr"); ------- =_aaaaaaaaaa0--