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 1lhMpv-00020P-Gm for pgsql-hackers@arkaria.postgresql.org; Fri, 14 May 2021 01:41:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lhMpu-0002Or-6u for pgsql-hackers@arkaria.postgresql.org; Fri, 14 May 2021 01:41:54 +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 1lhMpt-0002Oj-Vt for pgsql-hackers@lists.postgresql.org; Fri, 14 May 2021 01:41:53 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhMpr-0003Ao-Ir for pgsql-hackers@lists.postgresql.org; Fri, 14 May 2021 01:41:53 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1lhMpi-000116-Io; Thu, 13 May 2021 21:41:42 -0400 Date: Thu, 13 May 2021 21:41:42 -0400 From: Bruce Momjian To: Julien Rouhaud Cc: Alvaro Herrera , Pavel Stehule , Kyotaro Horiguchi , Magnus Hagander , Fujii Masao , Michael Paquier , Andres Freund , Tom Lane , Stephen Frost , Christoph Berg , Peter Eisentraut , PostgreSQL Hackers Subject: Re: compute_query_id and pg_stat_statements Message-ID: <20210514014142.GD20145@momjian.us> References: <20210513002623.eugftm4nk2lvvks3@nol> <20210514000437.GA14223@alvherre.pgsql> <20210514001302.GB20145@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, May 14, 2021 at 09:40:15AM +0800, Julien Rouhaud wrote: > On Fri, May 14, 2021 at 8:13 AM Bruce Momjian wrote: > > > > On Thu, May 13, 2021 at 08:04:37PM -0400, Álvaro Herrera wrote: > > > Here's a first attempt at what was suggested. If you say "auto" it > > > remains auto in SHOW, but it gets enabled if a module asks for it. > > > > > > Not final yet, but I thought I'd throw it out for early commentary ... > > > > I certainly like this idea better than having the extension change the > > output of the GUC. > > Oh, I didn't understand that it was the major blocker. I'm fine with it too. I think if we keep the output as 'auto', and document that you check pg_stat_activity for a hash to see if it is enabled, that gets us pretty far. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.