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 1lgLVM-0007pv-3g for pgsql-hackers@arkaria.postgresql.org; Tue, 11 May 2021 06:04:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lgLVK-00071P-Hq for pgsql-hackers@arkaria.postgresql.org; Tue, 11 May 2021 06:04:26 +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 1lgLVK-00071H-AB for pgsql-hackers@lists.postgresql.org; Tue, 11 May 2021 06:04:26 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgLVI-00078v-3h for pgsql-hackers@lists.postgresql.org; Tue, 11 May 2021 06:04:25 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 485FF580E1E; Tue, 11 May 2021 02:04:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 11 May 2021 02:04:23 -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=xSMQWJx9N5GeM3xTsE6qL7YZqny wO+lzV0Reihe4rHA=; b=UlepdYxL8A6pQaxRUAwNfhdxvm51YOKr+03+q04SbZZ zG9igpOrHqkZYHd4E/iIudrOi5ZcL0wE8nWoMlDwXK+manRhQ+gE/h5zwylusIo3 kyMNftP5+Pi7oszzDDbmieIfFeR30d/TXipegB4VAx+xQRew5e+LQy+CWrYFeh8f 0bXZWX73H7lGSDmV6FHsNEyHlQxiDJA7QgXev/2tcIqnqc0BFxgNHofUjl2bAFma jpgVkkyr+FhUXT7PDtynpLq+oH4bimIQb/amHEaHNqvgFadArkJkUHytxHdmNgAp pN94zVD/tdEC8rhd0rcpTm/2Dk+b9CJjl08IUc6XGAQ== 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=xSMQWJ x9N5GeM3xTsE6qL7YZqnywO+lzV0Reihe4rHA=; b=Dk1ZiUhhh0CEAP2DuIq3W3 vjEIFxeVwnrgMBcMpxvElZh97hwmY6/I5FO8hbBBudhto6KTLdS4SrP72mN67LUX wDgPtPpF6BRMIUT+B4MY5Cuir4ot5c++diaNvPUSkPj9IjcoBos3UTHKFT9S1APk qglhrwefoPX8n2rh2EkGEhuUqCTy4UsvX1RvafRUsPY5NmOc03ICq/8ze4lXCoEE 3OlPLze6BicB5ZbFlWZ/MHfQ3TgIofiA2FciCilNsPoWVOkdTYyAU5FtU+f230fN ODhoiNNjNjRb4ZEgtZSuNRlK0MOCB1HhYyH/MHPEPTvvAB6fJK4RUq+s+Y5fALKw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdegledguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffdufeeflefghfekudekkeev vddugfeiteekkeduleefvefhhffftdduffeiuedtnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucfkphepudduuddruddtvddrudektddrudekheenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprg hquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 May 2021 02:04:15 -0400 (EDT) Date: Tue, 11 May 2021 15:04:13 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Andres Freund , Tom Lane , Alvaro Herrera , Stephen Frost , Magnus Hagander , Bruce Momjian , Christoph Berg , Peter Eisentraut , Fujii Masao , PostgreSQL Developers Subject: Re: compute_query_id and pg_stat_statements Message-ID: References: <2268611.1619458140@sss.pgh.pa.us> <20210426174331.GA19401@alvherre.pgsql> <20210426181408.3j6kkzpxnadpwptv@alap3.anarazel.de> <2295572.1619461260@sss.pgh.pa.us> <20210426183745.4gd2s5qra6mlxfto@alap3.anarazel.de> <20210427062504.ofz3rgedbrl5bep2@nol> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TquwYuHOpE5jU7nf" Content-Disposition: inline In-Reply-To: <20210427062504.ofz3rgedbrl5bep2@nol> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --TquwYuHOpE5jU7nf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 27, 2021 at 02:25:04PM +0800, Julien Rouhaud wrote: > On Mon, Apr 26, 2021 at 11:37:45AM -0700, Andres Freund wrote: >> On 2021-04-26 14:21:00 -0400, Tom Lane wrote: >>> That's sounding like a pretty sane design, actually. Not sure about >>> the shared-library-name-with-fixed-function-name detail, but certainly >>> it seems to be useful to separate "I need a query-id" from the details >>> of the ID calculation. >>>=20 >>> Rather than a GUC per se for the ID provider, maybe we could have a >>> function hook that defaults to pointing at the in-core computation, >>> and then a module wanting to override that just gets into the hook. >>=20 >> I have a preference to determining the provider via GUC instead of a >> hook because it is both easier to introspect and easier to configure. So, this thread has died two weeks ago, and it is still an open item. Could it be possible to move to a resolution by beta1? The consensus I can get from the thread is that we should have a tri-value state to track an extra "auto" for the query ID computation, as proposed by Alvaro here: https://www.postgresql.org/message-id/20210426174331.GA19401@alvherre.pgsql Unfortunately, nothing has happened to be able to do something like that. -- Michael --TquwYuHOpE5jU7nf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmCaHl0ACgkQnvQgOdby QH3skg/+IkA2kZW/b/gnDfLKjUmKtGuSYkADO1YFN17va1vh2oFq12ruZmspFy5R 9yc8Mhe8gKMq9C5kJ8anxf9uhsNs5B5lh7Bj6Imne9D0nImexD6GSzTxofFgOZU6 Nngek2qk8VNhZt21f1OQQgtG1Ltko9ZjbFEGfc7djB76Lsv5oYWkP6DiI8IjzuUD Htl4XUWxHMv+N3llNIRE6QVLdQzByLqcTp6VpiOSp2SyeW9NNeHUalvjWCTWdr4R vxXB/KYCr/snAh5bBg4F4D+6iiio28GS6OWvsR1BOXr0mo96WSjhEkwvY7uZk95W Q6UHouPdRLvEhuq+NuztjFllR88mG3zCc2sZbIKl3LilyP37rZ6G9Fbqfoli6PzF dbtm//jJs25phzgWIlNm3zeUTl6Ir5dcMj0J6k9GfOkDuufi1lm7nDyXBrUZUIbw vnHfzbzNyVAXSAPii1r2OQAgWijwGWSPGK7vDfwTgRCYTC4cT6BkTfdJb3xuNlDN Mk1cX0h7OQMsmFM7/kJeHEXraKJgrVXD9pnSMFtdnqOtMtjOf3mELqhk1LAd4ETO yMS0KRNT07F8CYoxFQCEM3zUtQ98ZyZ67zkzVQxIkvjIGvD2QWqnEUOTtrKPHADQ yAPuVicXGyM2CcjmfDEZH4fNAowNNikDSoQ9iMwbJ3/R08jgtLI= =ke9A -----END PGP SIGNATURE----- --TquwYuHOpE5jU7nf--