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 1lnyvb-0008U6-4s for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jun 2021 07:35:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lnyvZ-0005Y2-Rs for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jun 2021 07:35:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnyvZ-0005Xq-33 for pgsql-hackers@lists.postgresql.org; Tue, 01 Jun 2021 07:35:05 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnyvS-0002IH-Cf for pgsql-hackers@postgresql.org; Tue, 01 Jun 2021 07:35:04 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 208365C018A; Tue, 1 Jun 2021 03:34:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 01 Jun 2021 03:34:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=/4pELYgFv3Ig/EMzhtImEEOPYQl Puzdd45TzHD4irLY=; b=HcwTzNuRStnPYWRGBqRtwxBhIREoo+CDpbR8V4oNsOV QliUjy0CLWmeCAadcpZhMYi4atZhAZxy/Zi4QkAFT/yYlA3BnX0nrG4Y5unnkw8n QciYGodW3BGbu1TiRB5OJxJ8yuPrOniM6IW1vDkop+yGnSQhsBTqW8hHH908sNut Kbq3BD7Zjhmd+YTNKQpu6BEKBb6zy8IR/bL2dyWT2u+erJFG8PG8qlQzF8K062vS Q7R79H+G+8ZGlVSGWrOU2te1ArTdn+1TJ2uTX6YmMRD1bAyhyBMVLGoNFVd29qvk PNr/mC8CNJ8zoXi89ZSXSMXfrBuOUwB7tD0WA20mPtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=/4pELY gFv3Ig/EMzhtImEEOPYQlPuzdd45TzHD4irLY=; b=AkvXD9UFHV0OXC4W+e584S ys3ZkAgEJrDQSWOLYA5GcikFZjZtMLP1SruEccnQKeB0OYJb2gODibQu18A+Lz/I XuUYM0gxcEZUGhAFm4D/K+U11VSU51HswV2PmqJk1VNLeiRdWZERz1VGVWE+Uj5q bJ14GO+1rdbkP7eRPuJV1H6UxwhXIp7lpcM0h9Z6kZL0hFCkiESSUp8qQ/1VkQSH OeqKMpTCI7kGVoc4kVxWkVaYVmBjCs5Fh9ttzWohUxwCgnX0DLWWA+vxAgdwpQFJ s3ingJSB+YD/GF3JYwdePWE6K9DfhJEhXO8fV9qFSJECAr9kN9b9Pi4kMcfv3xOA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdelgedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Jun 2021 03:34:52 -0400 (EDT) Date: Tue, 1 Jun 2021 16:34:44 +0900 From: Michael Paquier To: Tom Lane Cc: Justin Pryzby , Hubert Zhang , tsunakawa.takay@fujitsu.com, pgsql-hackers@postgresql.org, Andreas Seltenreich , Bruce Momjian Subject: Re: Multiple hosts in connection string failed to failover in non-hot standby mode Message-ID: References: <20210506162651.GJ27406@telsasoft.com> <4170264.1620321747@sss.pgh.pa.us> <20210531012500.GP2082@telsasoft.com> <2522602.1622433912@sss.pgh.pa.us> <2566986.1622468180@sss.pgh.pa.us> <2732890.1622509658@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NWp81HeZ+ss+ncxV" Content-Disposition: inline In-Reply-To: <2732890.1622509658@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --NWp81HeZ+ss+ncxV Content-Type: multipart/mixed; boundary="CHmk0yTx0aqSmfx/" Content-Disposition: inline --CHmk0yTx0aqSmfx/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 31, 2021 at 09:07:38PM -0400, Tom Lane wrote: > Michael Paquier writes: >>> Agreed, that seems bogus. >=20 >> There may be others, and I have not checked yet. I'd rather do a >> backpatch for this part, would you agree? >=20 > +1 Playing with all those variables and broken values here and there, I have been able to break a bunch of tests. Most of the failures were in the authentication and SSL tests, but there were also fancier cases. For example, PGCLIENTENCODING would cause a failure with pg_ctl, for any TAP test. I got surprised that enforcing values for most of the PGSSL* ones did not cause a failure when it came to the certs, CRLs keys and root certs now. Still, I think that we'd be safer to cancel these as well. Attached is the list I am finishing with. I'd like to fix that, so please let me know if there are any comments or objections. -- Michael --CHmk0yTx0aqSmfx/ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="testlib-envs.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index d6c3eb8723..d4f9fc5f2b 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -104,13 +104,30 @@ BEGIN delete $ENV{LC_ALL}; $ENV{LC_MESSAGES} =3D 'C'; =20 + delete $ENV{PGCHANNELBINDING}; + delete $ENV{PGCLIENTENCODING}; delete $ENV{PGCONNECT_TIMEOUT}; delete $ENV{PGDATA}; delete $ENV{PGDATABASE}; + delete $ENV{PGGSSENCMODE}; + delete $ENV{PGGSSLIB}; delete $ENV{PGHOSTADDR}; + delete $ENV{PGKRBSRVNAME}; + delete $ENV{PGPASSFILE}; + delete $ENV{PGPASSWORD}; + delete $ENV{PGREQUIREPEER}; delete $ENV{PGREQUIRESSL}; delete $ENV{PGSERVICE}; + delete $ENV{PGSERVICEFILE}; + delete $ENV{PGSSLCERT}; + delete $ENV{PGSSLCRL}; + delete $ENV{PGSSLCRLDIR}; + delete $ENV{PGSSLKEY}; + delete $ENV{PGSSLMAXPROTOCOLVERSION}; + delete $ENV{PGSSLMINPROTOCOLVERSION}; delete $ENV{PGSSLMODE}; + delete $ENV{PGSSLROOTCERT}; + delete $ENV{PGSSLSNI}; delete $ENV{PGUSER}; delete $ENV{PGPORT}; delete $ENV{PGHOST}; --CHmk0yTx0aqSmfx/-- --NWp81HeZ+ss+ncxV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmC14xQACgkQnvQgOdby QH1maA/9HdL8/cqlKZ9DWMPLKfOcpyw3aSUlfFVc07eEiYH712KJC1OnHOA6feyj W7ECtKjIjZDekg5iE7jXPuNid7DqzITlf941U8FGicsgnYElHux0CFUQQanVhsxf qieBaeuqhYi7Nu9bnNu4pis/IqZc7mVHizzC0u+P384B+1s7sGtoq/73E3lJaSKS c8/uoQPEMTChu2nptmnXUGpkjIG1EWSsfAANmJvyjsmfP7giu3HmdMq0ZowBPTqg +HKgDYSw7C8LJoLFAn1jk8MQeYRwnovhvc/U5GECxtAQOKpZvP29MLUOwdg3enkf PZKoQit5HpkvZYLC3KkwCBEhNElwjyGSG2p3XbnOS+XJSbMpdRcQdNtoJxnudPeM 32W8f2KBcFQ+f9YfUFS3lYMuEc19Yv4dE3Ch8TwaF2kGG8Z3hLwLrHnkAxN4Ek6v 1AKIwW9DQ4Nc/jshgjADXImQXbTRetaAM/WILOep8axHOeU3LUXzPdxzWiHJmrYj 2yTOWhQ5jyyrePAkE8FiodhDjJVwv7xAQ5oWCS71PPjN0zVIwUtjXsB6U+0c9Wlo P/cMP3iKNQwg+G9ecp0Ozlfq7eXEB89yqUyXciWP0hpMon3pbss4chDcBqqKlyer JmXJzKfSJvLAVoAyvMb4I1P4FFViE8Bgc3U+gVKuTvjjJUUYc88= =IKRO -----END PGP SIGNATURE----- --NWp81HeZ+ss+ncxV--