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 1sjRSn-000kGl-4f for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Aug 2024 22:48:29 +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 1sjRSj-00BdgN-Sq for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Aug 2024 22:48:26 +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 1sjRSi-00Bdct-4c for pgsql-hackers@lists.postgresql.org; Wed, 28 Aug 2024 22:48:26 +0000 Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sjRSd-001zQF-MF for pgsql-hackers@postgresql.org; Wed, 28 Aug 2024 22:48:24 +0000 Received: from phl-compute-02.internal (phl-compute-02.nyi.internal [10.202.2.42]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 6DA701151AD3; Wed, 28 Aug 2024 18:48:18 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Wed, 28 Aug 2024 18:48:18 -0400 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=fm1; t=1724885298; x=1724971698; bh=7EILVlzjC+ 36uEe84ucQ1dKvsCZ+6r5O/NIO+BZJsBA=; b=V1bmbyRVRgKaz0ojlqTYWFU49I jeyhIeBJpoGfXfJIwyX37/jveCGXnYJnlR1tj3jCEIoWeqgA+d8DzUxSJrZ2EBq7 qv3ixk/SpaS5YljANuWX59teD1MqQ0FqqNjRthZGB7ImTR/afqOFLSJEStstSKmv x0OhaPWfV2a5Yfesws6eX8SnnrGNNhVxV9ZiQ7HMUjqvUqtk2zaSRZ9eSIeWKw6O zcqG84ZBSjQpFhuanh7KlQ32+k8+U/lbDmfhyo6AkwFIuDLAg1qLakcXiCyCD/o9 mckgeMd2r6gMRHC30Z20ksqHW1CCh+PLbiXNSGmIJdUUKJpoJLzJF3qricHg== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1724885298; x=1724971698; bh=7EILVlzjC+36uEe84ucQ1dKvsCZ+ 6r5O/NIO+BZJsBA=; b=Jhzp29pS5ueU5RkoLflxXo5g28jthGOCrhgRBFyNxG5R r2vCKyMbX+lJcpdjfunmBDagIWFtC2gW2sqtXey9nGkorLrYrhGwKqxjWMONFv3U 8NRB6SXqsAGtsXHxSfvhanPl9CeNqiR7NgvRN6fAFcyRSqXFH6exByh7Tee6oRwo z0tNiAti1STL8nv83+MlOr2Ue3p5agvLvChcp5XrxXxf+uIIhCml4vs3BX5NmNK/ skSHGEKBQa+u7wLRJXNXrtKH3IIpbJSEl2MBJ5xcApvQ/8au98r5dA3v6hoclcD3 LQswS2iukd3hFtUqxVYxQBaTcSPfA4a56qjEh6WKWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeffedgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeff jeevgfevuddvjedtvddtieejheduueelvddufedtgfefjedvkeevkeeivddvnecuffhomh grihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipd hnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrohgs vghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtg hkvghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprhhjuhhjuhduvdef sehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Aug 2024 18:48:16 -0400 (EDT) Date: Thu, 29 Aug 2024 07:48:07 +0900 From: Michael Paquier To: Robert Haas Cc: "pgsql-hackers@postgresql.org" , Julien Rouhaud Subject: Re: query ID goes missing with extended query protocol Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8meD6zrJK12C0jcH" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --8meD6zrJK12C0jcH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 28, 2024 at 04:27:38PM -0400, Robert Haas wrote: > - Add a call to > pgstat_report_query_id(queryDesc->plannedstmt->queryId, false) to the > top of ExecutorRun() with an appropriate comment. > - Fix the incorrect comment mentioned above. > - Back-patch to all releases containing 4f0b0966c86 i.e. v14+. This is being discussed already on a different thread: - Thread: https://www.postgresql.org/message-id/CA+427g8DiW3aZ6pOpVgkPbqK97ouBdf18VLiHFesea2jUk3XoQ@mail.gmail.com - CF entry: https://commitfest.postgresql.org/49/4963/ There is a patch proposed there, that attempts to deal with the two cases of a portal where ExecutorRun() is called once while holding a tuplestore and where ExecutorRun() is called multiple times. A few approaches have been discussed for the tests, where the new psql metacommands added in d55322b0da60 should become handy. That's on my TODO spreadsheet of things to look at, but I did not come back to it yet. A backpatch would be adapted for that, yep. I'd like to see tests on HEAD at least. -- Michael --8meD6zrJK12C0jcH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmbPqScACgkQnvQgOdby QH3TAg//euIPUBItER7WVhulXPQ6Rr39I8Y7AbYZrLVtT/9G2+Z0kscaGzzod/Bt nWm8bFdx8iHLJEqHr2sw28ZDT5JJo3+SUypsiSa/b5Uv1bvdGZ2WQETTIkfvZKx3 z0dMTOo6UuG0P96f/Mljy2yIF3m58waqmjh7Zu6XWJQ3dvQHuJnRKB7/d3H/r9u8 du76nc8+8CcnYaVQKI/r2DSSSs5ZVYPm63p9tcOCnVeEKp1a3x+FvScAcnBZeso9 d2SQNDI3HqLAtrJ2BAOW7aSkB95waMgcI4EqTV/ZB+lnCsq0dMZcrw8J9hlXC6tH a0uIn7/bcnTFjsaQnhG4TO0UEuYYyPFdJECgKlvjSuEP49tyjBWQzRR7mniQtmMA CEHeIGN1xicX8JW0jp3OTaAM80zrUXpmndWOpUtgT19av/S+u8KDWWcrorAzO/1y sQEh7nqGnAbO1rBoSNmoOT5kdGOd+u0Vx4wuY6c0ExvkygvFyg6veLgrXMBKMPLr HcnGCJzPo8GJqqmXwzUvUtdak270bfQeznepudvqmhAlKXiHbq9swlNRysEJLLlZ FVPip0qS93p+QiXutiSBpaOedkkHTYj0zaUCCf0trXyrheshCrnEqGQH6JE17U6I JiuEA0g0ErkUo22Qs5r0cNdOIStFOK1e55iNTQeCQvFVU+OoCNA= =GH+w -----END PGP SIGNATURE----- --8meD6zrJK12C0jcH--