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 1pfH8c-00032o-Uw for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Mar 2023 09:21:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pfH8b-0005iw-GL for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Mar 2023 09:21:37 +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 1pfH8b-0005im-5s for pgsql-hackers@lists.postgresql.org; Thu, 23 Mar 2023 09:21:37 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfH8U-0000rX-EY for pgsql-hackers@postgresql.org; Thu, 23 Mar 2023 09:21:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 15E86320031A; Thu, 23 Mar 2023 05:21:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 23 Mar 2023 05:21:27 -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:sender :subject:subject:to:to; s=fm2; t=1679563286; x=1679649686; bh=6u yE1/iKxQEeYEJluMsxsUItLztKUa4p35yXu8Y/M3I=; b=Rtv2+PQE81mT4kZwU6 XeCCQUNKM0AzcZEDSkoigD2S2TMJIPGxW12ROBPVu8PFfHb4qG6h2I2znNxyYh/x ZFIuHOegwdddYpEKSvosz55iUTyeBKHwkdCLgsmXA3SgcnKKO1lSo5aqLTLpb1s0 X2hd4Ckgc4CoP1BNLJYLR0ALlifH/BtBIO+cXu54JuGdFF4aRMHDAws73WSuZAcG ETlYlKCMRRzg7NxYH6urtCHwGxhBwd4J/ZbjRqNOch+bcwgbFDUWPOdtr7+QPxOD lxGlfeRhnn3iikytgcQasr8TlPRm922Vg2oBIoVf8FpWg7TR57K8dmhagKDnPgy+ NlvA== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679563286; x=1679649686; bh=6uyE1/iKxQEeY EJluMsxsUItLztKUa4p35yXu8Y/M3I=; b=lB87O4+dMdWrpF5EQ+XIaE0ycUTgE auxptiSqnZIjs1wUx0zN0vPWJJ0NgmA961SQjJxsfJ6koSL8afhnQ4rRpP0LgSvm +ENhx4x3klYYtjJVMXVu8ZBdlyfXCNG5SiB50nsoFuOgaXjh5Ux3zHqxC62FUrlq mdpNvigzp4N1TSq/Yi1scgwPzezUlm30QTLuwTPDfxfsHGOwcFSV/dNi0fHEwD+1 xJqkDVVQF3bTahoZ+EXULCczIv+3x2r2J8ARlfDk4H+uYIFfYYosHqHNj30ZeCKT +F+Nde0dSvqrKiljlUIkdTPlYvARLblH4tqyh1TRBquoG5pSQtHGbIpvA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeggedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Mar 2023 05:21:24 -0400 (EDT) Date: Thu, 23 Mar 2023 18:21:21 +0900 From: Michael Paquier To: "Drouvot, Bertrand" Cc: "Imseih (AWS), Sami" , David Zhang , "pgsql-hackers@postgresql.org" Subject: Re: [BUG] pg_stat_statements and extended query protocol Message-ID: References: <3499c5ed-5511-0801-ccfe-297b098aa8fe@highgo.ca> <3227719C-F7A3-4A94-B0A5-D27673316560@amazon.com> <0d583e2a-8214-4975-a4b4-7e9e0b8f8e9c@gmail.com> <472cfda7-1e4f-ed47-0860-78cf685b53b0@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rNeLz5p83aAgX8tm" Content-Disposition: inline In-Reply-To: <472cfda7-1e4f-ed47-0860-78cf685b53b0@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --rNeLz5p83aAgX8tm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 23, 2023 at 09:33:16AM +0100, Drouvot, Bertrand wrote: > Thanks! LGTM and also do confirm that, with the patch, the JDBC test > does show the correct results. How does JDBC test that? Does it have a dependency on pg_stat_statements? >=20 > That said, not having a test (for the reasons you explained > up-thread) associated with the patch worry me a bit. Same impression here. > But, I'm tempted to say that adding new tests could be addressed > separately though (as this patch looks pretty straightforward). Even small patches can have gotchas. I think that this should have tests in-core rather than just depend on JDBC and hope for the best. Even if \bind does not allow that, we could use an approach similar to libpq_pipeline, for example, depending on pg_stat_statements for the validation with a test module in src/test/modules/? -- Michael --rNeLz5p83aAgX8tm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmQcGhEACgkQnvQgOdby QH20QA//WbrISDm/b7uwufv/2z+v70NlnYfQM3DEkId4LajyMddU+Mahs5NkteD9 33zWu0+JGp1PTMC/wQvIlMyz3odoRHxqGmurJgdesmo36zefyt3pOYTF9hTHSOHO MtDO7RJ4O2/ZZNgaREPf9R1RqyO6cAlvynfOreHxb1zHgMKpGwijfaRUAeY5VCYz UakWHktaZoXA6dVSgu8y7j4bR5c5IGt6sveGcbgquQ9xOFWiZtRZp3lO9kkidtvX qFVO20h0NesLMxxq0S0tPMfWAc77rldfe/j9JbUuRTkpleTtKKFfeb5REIL6HTUi TKBgaXAjbFN5P1JSGb4quHE3c+aQ/o3rRk2aRNPxdHAaX1a/yY4rorjg7clcBFIH P7/DVB43GLrG4QsaoOAE7dcZhBcf9ijPVlQsAGfvjnJkQPCznUdNvBi0I52OpXRA xbpIofYPhhDgQ9YB++KB/dJMlqVjjNjrKDtNRKQ7VFNcHIXnizUCHicfWBGUzkP0 KSlw5IafVGHke5HXwLBrhwj5n5KOHaeUNqSRXdgfT3HilfG3OpNPBwZ2cFr5mh5e zi6msNTGzT1cl1UW3LDuomlv2VHO373nQrzQg2IF7/x5+vRGSHVXzfdA6jTVUyN9 KqBo3Q3eD5HIV/sLX2LhKtepNa7LtlUxgGb7i9ujdwRWCzZd6IY= =H4Qh -----END PGP SIGNATURE----- --rNeLz5p83aAgX8tm--