Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tbOuE-00ASBo-PW for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jan 2025 18:59:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tbOuD-00GQYm-AF for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jan 2025 18:59:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tbOuC-00GQYd-I1 for pgsql-hackers@lists.postgresql.org; Fri, 24 Jan 2025 18:59:49 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tbOuA-001JQ2-0K for pgsql-hackers@lists.postgresql.org; Fri, 24 Jan 2025 18:59:47 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 4316C13802CA; Fri, 24 Jan 2025 13:59:45 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 24 Jan 2025 13:59:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1737745185; x=1737831585; bh=wy6p2Va0ql /rMxpZUirYYeMNPUpZQ79JZIoQs1+qXw4=; b=RwJNYb0OnFT5c7AWVPIXExgIO7 6ck6x2lcJuYty+/nTJhMNmh9Xr9U8RMWIJEJ+JBN0MnddQfQUsv8I84nbV4W13IB 8TcTV1AJamk+srs5GMw4YCbm6Qx2HfimUpNFyXb3oAu3zqKtfw+ymuKObFTORSpo H2yJcRJjRUiiEK/guSeuBXY4aaZwPDq36b6j8k70Zh3tnVUQfLrQTmxrRKo2xN3r Kqf243GuAug4glgqevB55X7gVkzQ5Ylh7hFk+1Y/Jp0Ym9688YZzTNDFS9ebDV/b pGDvfLSR5x1XcL8qjoFYqsq0tXyupYdBcesMBJIh5pMhY7jQaBQwR6v1w8LA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1737745185; x=1737831585; bh=wy6p2Va0ql/rMxpZUirYYeMNPUpZQ79JZIo Qs1+qXw4=; b=ioBAPyknGDuDplKqjtPsiC/Fk7rObq8hTpEtfVHvcGs/gfLMxB4 4MO0ts/Q8+k28ZJqp9qZwfV3+7oFXz11OhG1AyHYE30AGZ1ic8aCM3onKZuPuIFh kXgu8ELNtHtYqdMVWhaudHD0W2exlMwaf9FcAJHa8wAVwwFKCp5hlEOlBVFtyttJ gK53DLUSmTaoqs7ElVhAqiWFKqTf2vsVI1nCawIIVIxv+dOdWMR40uovwOohORXr oMab1MrNsG1WY5HBNE9tefA5uYEm+G+7JaVbel+NVvZYAnOgJUIerrIcGpV+Cn+H F+BQ0kXadMzrPY+aR3LWBFHmWqRq38hjRGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedghedvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufhfffgjkfgfgggtsehmtderredtreej necuhfhrohhmpeffrghgfhhinhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhcuoehilh hmrghrihesihhlmhgrrhhirdhorhhgqeenucggtffrrghtthgvrhhnpedvvdfhhedtfeek udfgtedufeehgffggeejieejheeugfethefggedtleegteetjeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhi rdhorhhgpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhr ghdprhgtphhtthhopegrnhgurhgvfiesughunhhslhgrnhgvrdhnvghtpdhrtghpthhtoh epshhmihhthhhpsgdvvdehtdesghhmrghilhdrtghomhdprhgtphhtthhopehmihgthhgr vghlsehprghquhhivghrrdighiiipdhrtghpthhtohepthhglhesshhsshdrphhghhdrph grrdhush X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Jan 2025 13:59:43 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Tom Lane Cc: Michael Paquier , Peter Smith , Andrew Dunstan , PostgreSQL Hackers Subject: Re: pg_createsubscriber TAP test wrapping makes command options hard to read. References: <87jzc46d8u.fsf@wibble.ilmari.org> <5f41d6c6-1cbb-494d-a5c4-3c449fc4e9ad@dunslane.net> <105f432a-6b0b-42d4-9061-65d263279be7@app.fastmail.com> <87ldv542fk.fsf@wibble.ilmari.org> <87frlc45gg.fsf@wibble.ilmari.org> <878qr146ra.fsf@wibble.ilmari.org> <379085.1737734611@sss.pgh.pa.us> Date: Fri, 24 Jan 2025 18:59:42 +0000 In-Reply-To: <379085.1737734611@sss.pgh.pa.us> (Tom Lane's message of "Fri, 24 Jan 2025 11:03:31 -0500") Message-ID: <875xm43un5.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Tom Lane writes: > Michael Paquier writes: >> On Thu, Jan 23, 2025 at 08:25:45PM +0000, Dagfinn Ilmari Mannsåker wrote: >>> Here's a patch for that. > >> Thanks. I had a bit of time today and applied it. > > BF member drongo doesn't like the new test for amcheck. > Looks like it has to do with SSPI authentication producing > a different error than expected: Ah yes, I always forget about that quirk on Windows. > stderr: > # Failed test 'checking with a non-existent user stderr /(?^:role "no_such_user" does not exist)/' > # at C:/prog/bf/root/HEAD/pgsql/src/bin/pg_amcheck/t/002_nonesuch.pl line 86. > # 'pg_amcheck: error: connection to server at "127.0.0.1", port 19928 > failed: FATAL: SSPI authentication failed for user "no_such_user" > # ' > # doesn't match '(?^:role "no_such_user" does not exist)' > # Looks like you failed 1 test of 107. > > You might be able to work around this with auth_extra, > a la 1e3f461e8 and other past fixes. Here's a (blind, but at least doesn't break on Linux) patch for that. - ilmari --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-Windows-pg_amcheck-test-failure.patch From eb168096c3e88cbd849907f7b6398d87a7844544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Fri, 24 Jan 2025 18:50:05 +0000 Subject: [PATCH] Fix Windows pg_amcheck test failure For SSPI auth extra users need to be explicitly allowed, or we get "SSPI authentication failed" instead of the expected "role does not exist" error. --- src/bin/pg_amcheck/t/002_nonesuch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_amcheck/t/002_nonesuch.pl b/src/bin/pg_amcheck/t/002_nonesuch.pl index 2697f1c1b1a..f23368abeab 100644 --- a/src/bin/pg_amcheck/t/002_nonesuch.pl +++ b/src/bin/pg_amcheck/t/002_nonesuch.pl @@ -11,7 +11,7 @@ # Test set-up my ($node, $port); $node = PostgreSQL::Test::Cluster->new('test'); -$node->init; +$node->init(auth_extra => [ '--create-role' => 'no_such_user' ]); $node->start; $port = $node->port; -- 2.39.5 --=-=-=--