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 1lTZZB-0003Uh-Fm for pgsql-committers@arkaria.postgresql.org; Tue, 06 Apr 2021 00:27:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lTZZA-0007nv-8X for pgsql-committers@arkaria.postgresql.org; Tue, 06 Apr 2021 00:27:36 +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 1lTZZA-0007no-0Y for pgsql-committers@lists.postgresql.org; Tue, 06 Apr 2021 00:27:36 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lTZZ7-0001Fa-Lr for pgsql-committers@lists.postgresql.org; Tue, 06 Apr 2021 00:27:34 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 955325C00CC; Mon, 5 Apr 2021 20:27:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 05 Apr 2021 20:27:32 -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=PYroPUEXjXsh7gBqR1IKNIohTmT LDEMdPVkaKkcMd+8=; b=AdlhjBcel99C0PRrGO9N0wCCDo+oWsow8swd8Y0Dkuo 3yIuIPnXDTk6jL/Poo7iGiMh1+Ja8X0CThG+r72qjKsYcdkDSJ/oHAQK3zbdpjrH /Dr/wB2ho5IVyURzfgE+jwkkF1Kgo5UjaahxYvqqxTbd07M/Kln70kUy7EKtbN+Q LYT/4COMn66DkdZ29yb/r47RCIzx+YDbch1S7JcLgrQJNwlCjWRXhi0wYilqaB6f E7EtUnphRwkJQYDfkf+eGmc0NGEj5Xj4sBC7I1X0UrfdO9kest1srQSWawxGEg0W LGmY/AiVbj4B8Sd5G9PWT4CLxDw0rIIGlJcPtSkxKXA== 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=PYroPU EXjXsh7gBqR1IKNIohTmTLDEMdPVkaKkcMd+8=; b=Y4j7Q8ghp/ljD7IKfBxHzA PqFKk/zcYgdb0MnIUdhTzRMOeddvdyB4hvdtWVx2JtqGuVYoB0atQ9ktVMfwRmCL lIn/3nizZ9wZ2erLLKPcWbwK0YINrk8x4Sr52Ff22j8nCmhXqDrXASIbB5yOYfES rVSvLmGTKikoBoBTQlXceLgYIHEh7vptgbpkS/tY+kk1HEMbQZ8TMVXtXxA0grvL uZn3RQEdpMicvoSFBI8gg8kZ77AZ2lLXgy7Y+e180wTRs8aWwbO37aLA9mZbLEKE UMu9e2uAvMdStWObGu+RfwgPDY27YyB6X1RhlunxJ/7L9MdRut0rIw+FzXE8TrXg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejfedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpedvgeduuefhtdeuleettdevjeehheeiveeuieegleetgeeljeelieeuieehgeevhfen ucfkphepudduuddruddtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id E56FE24005B; Mon, 5 Apr 2021 20:27:30 -0400 (EDT) Date: Tue, 6 Apr 2021 09:27:26 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Refactor all TAP test suites doing connection checks Message-ID: References: <513200.1617634642@sss.pgh.pa.us> <932059.1617663467@sss.pgh.pa.us> <933130.1617665023@sss.pgh.pa.us> <935457.1617668131@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8A7M5uvMXbvzLg9I" Content-Disposition: inline In-Reply-To: <935457.1617668131@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --8A7M5uvMXbvzLg9I Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 05, 2021 at 08:15:31PM -0400, Tom Lane wrote: > Dunno. Certainly most animals that enable TAP at all should be > running the "authentication" test, but those others all need to > be manually enabled, I believe. My own animals run the SSL test > but not LDAP or kerberos. The SSL tests have always sent down a query even for scenarios where the connection would fail, but they have used command_fails_like() rather than PostgresNode::psql. The puzzle does not seem complete. > I'm fairly sure that we've previously fixed this exact same issue > in some tests that expected a connection failure ... Yeah. Looking at the git history, that would be c757a3da. test_access() in the kerberos tests sends a SELECT true even for expected failures, so it seems to me that it would fail with the same symptoms on those machines. That looks worth fixing and backpatching. And I need more caffeine this morning.. I missed your point that a connection failure should pass down an undefined query string per that. Well, the fix is simple then now that there is a single code path for all those connection attempts. -- Michael --8A7M5uvMXbvzLg9I Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBrqu4ACgkQnvQgOdby QH10IBAAiz9Hbw/t9FiTW2xIu+evigoo7yaM+9kpkWrbs8JXJNlsU8o6zG4NvPLW GCtI/TUg7gbqI9M3hAyMFQzgYqQXTu/f7usE9nTzEPoQ8BShqYPqJob7nA1SySGa IpJYg8KNq9qW6A6ZUQK6YFs8EDbixRrmC6ExEPvh9rl+VF0tBttR4mJi1rY+qme8 Kk/FhKfr8JwaZGSrca4lwfIXB+1mzNydID/ThYIAfG3Lk9mbkvROzJWfi5KGcISV /twG1knGZhcosLarMBodF6lhfiLosFhsNKJ0Mq8S6ITcQ4R2oHDWIeFldoYy5ejZ PI5nmxkZtqIqqp4DJtymAIWqLwFNpjjT0p0f4Z1YWk0X0159k18lE6NmtLUFoBEd l9f55VgI3zDofOn2JjrSZ3v+De6NdHK6ChbDws4V7FNFgXwiHpuGx0fDg3i8kzbh dFFwjRNBlDAUHp2nLf3QGzO+LSyEdhJjFYT7yP0nQXrsve4VBjaK+2b1jEe0Ybmm DehMsVQEydM8jnQoXZeCTLaln8SYosJ5SJCpXooHoctJFjCkNuS9927TE6Ss0Tuu +/Qlrr0SR8ZVb1GnkEuBi9LCWCB6oMhsOAnYs/rf7Fp4Kn7hufHdGEr8CetK+5s7 7bIuOrKfUuzflqItKXtOmpAr0Qc3AbVqUjVmTvmN/dDuKkRQz1Q= =MTaM -----END PGP SIGNATURE----- --8A7M5uvMXbvzLg9I--