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 1t8szy-006X9X-Oy for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2024 03:15:54 +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 1t8szw-00BGsR-5L for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Nov 2024 03:15:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8szv-00BGsJ-07 for pgsql-hackers@lists.postgresql.org; Thu, 07 Nov 2024 03:15:52 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8szq-000bzX-VM for pgsql-hackers@postgresql.org; Thu, 07 Nov 2024 03:15:50 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 608AA1380233; Wed, 6 Nov 2024 22:15:45 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Wed, 06 Nov 2024 22:15:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; 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=fm3; t=1730949345; x=1731035745; bh=aGs9PIIuP4 nCH3MCXvP6BLwiy9Q05tmaWqSnlN4lyW8=; b=hS4Yv6kQ8tKrh/WP5lQhz81ZdC /DYltoenLmJNdazgkMkYU6QFu5yoj/LVnIZe713RXzC0zxqnOkhrBYi43wPHIovb lKY0FdvlIp1ABja6ytJCWZkmlUb0PdkGvSRBntDvbSDnUIyBLIwPbx6DirCFsErL +BFyb4lHPEBDCiw3X+APqUm9D0/q1MPQtoEuqEmij4Oq1hCOVMa/9NE/lSLGJkXQ 9pNtjMZ3IEa70P7f2ePDkU0FASIU9tEF4bI4MhZkuUaSUHKJaBKBf9vhkOFpP96s 8Wp3Yk/Ye3qX1Us0EK0eTs/Ngdf//vr6Q+ApmhuNc6SYZAvpNefiWq6PPcyg== 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= 1730949345; x=1731035745; bh=aGs9PIIuP4nCH3MCXvP6BLwiy9Q05tmaWqS nlN4lyW8=; b=Fws17Vy1n02nVdAK2uc0Hkg4WjTo7OPRNWcVBjLmv1KL2syE13M hie62DWRMZXSv+kqkeWYMMMeAiVjHD4xTFlOHXoWhes6fLIB63jduuRyB0M6LNsl vw14sBU8wHsGV89mDkLBVk2nSYiqJBCPZz8V+rfPiJXzKWfJzUPs+WD/P4KqITVZ /Z7d8/9jhYsTnCbEYJ7Q5eDX9NMw6D8+bFYIJXygav74SmzK0EOD+Ozdib8PuExx QYbDAlW1K3IneOeDnV9O9clN4fVpW8Okx0aBbk91BevpZUknZsVwZ7mf50/k76FZ ZZrxHEA7lLyAIMcTUdSxD5d3qpxbYxGmM8g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdefgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhgg tggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoe hmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleei fedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiipdhnsggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehjrggtohgsrdgthhgrmhhpihhonhesvghnthgvrhhprhhishgvuggs rdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdprh gtphhtthhopehnohgrhheslhgvrggusghorghtrdgtohhmpdhrtghpthhtoheprghnughr vgifseguuhhnshhlrghnvgdrnhgvthdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrh hssehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopegvuhhlvghrrdhtrghvvghi rhgrsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Nov 2024 22:15:43 -0500 (EST) Date: Thu, 7 Nov 2024 12:15:33 +0900 From: Michael Paquier To: Jacob Champion Cc: Robert Haas , Noah Misch , Andrew Dunstan , PostgreSQL Hackers , Euler Taveira Subject: Re: [PATCH] pg_stat_activity: make slow/hanging authentication more visible Message-ID: References: <20240910172712.e8.nmisch@google.com> <20240910205850.5d.nmisch@google.com> <20240913145621.43.nmisch@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4TYB8qMkAVsTyvB/" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --4TYB8qMkAVsTyvB/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Nov 06, 2024 at 02:48:31PM +0900, Michael Paquier wrote: > I'm OK with 0002 to add the wait parameter to BackgroundPsql and be > able to take some actions until a manual wait_connect(). I'll go do > this one. Also perhaps 0001 while on it but I am a bit puzzled by the > removal of the three ok() calls in 037_invalid_database.pl. 0002 has been done as ba08edb06545 after adding a bit more documentation that was missing. 0001 as well with 70291a3c66ec. The original expectation of 037_invalid_database.pl with the banner data expected in the output was interesting.. Note that 0003 is lacking an EXTRA_INSTALL in the Makefile of src/test/authentication/, or the test would fail if doing for example a `make check` in this path. The following nit is also required in the script for installcheck, to skip the test if the module is not installed: if (!$node->check_extension('injection_points')) { plan skip_all => 'Extension injection_points not installed'; } See src/test/modules/test_misc/t/005_timeouts.pl as one example. (I know, these are tricky to know about..) 007_injection_points.pl is a name too generic as it could apply in a lot more places, without being linked to injection points. How about something like 007_pre_auth.pl? -- Michael --4TYB8qMkAVsTyvB/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmcsMNUACgkQnvQgOdby QH0z5g//XiyEuqs2OEbEU5UElv+Yus+ts86sgfoLex8YiOad2L0jEG2MnattNOJD snOQVKFkE+JF8EfHK/uryVtRtMkIr0fQnFF7AOrDfOpJM+MVB72dsONumhccrEoF D+IYhu82iaUbfiD75CBxR8/wcPgHsaQPI2f8N0wLdyMR2yJ+4yj7qOpTS0F3K/ME Ko5WCwPYC/DmtNOJI0dgsW2ubr9NJH7YZvBW2TyEp5ybL7D4zJ0BEKNi/lVc2sQp X+kgU3Bpvgq9633x07pqaS8zVcVcBcFHM3ks5lN5dgQQyP4cAvjA/JzHVtUNN2Lo 1zH0ekb2VR2z0KCqUV79TEN+lb7VcRKffaRluZfpS35LXj0U1kkMuz2nLLt9R4C0 onEpHf4NvnZPTaSy0g0lrl5/PeGiBLeHQGxhif40kkoAL4ShBheOIiVoRaG0qhA1 o7aRlgGIJ234rHf9evG7GY/qOWyLzYrcRoW4TZ1NWqrZYcovI9QiSXcveSKcrMLr GsZg3eWiU2XqQqZmTjxd07fLRH/IT2fNVBnAbNbjiD0296JSFk3vyjqN0ERzpJCu OLRGG9bIAweEsHJirDwjIelL6W1+dGe56j3AZfwxPeqiqCIy+Fvvkh7JueTsr0hM f59Pv/ca6lHV5lM4KRDUwispkdJLkmuPGqpuLKnE3c/U7T7Ists= =z8R6 -----END PGP SIGNATURE----- --4TYB8qMkAVsTyvB/--