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 1lNIOh-0004ne-PH for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Mar 2021 16:54:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lNIOg-0003Ok-NN for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Mar 2021 16:54:50 +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 1lNIOg-0003Od-Gf for pgsql-hackers@lists.postgresql.org; Fri, 19 Mar 2021 16:54:50 +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 1lNIOe-0006Mm-0m for pgsql-hackers@lists.postgresql.org; Fri, 19 Mar 2021 16:54:50 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1lNIOZ-0001Tn-CV; Fri, 19 Mar 2021 12:54:43 -0400 Date: Fri, 19 Mar 2021 12:54:43 -0400 From: Bruce Momjian To: Julien Rouhaud Cc: Robert Haas , Pavel Stehule , Tom Lane , Alvaro Herrera , Michael Paquier , torikoshia , Atsushi Torikoshi , Tatsuro Yamada , Tomas Vondra , Evgeny Efimkin , PostgreSQL Hackers Subject: Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view? Message-ID: <20210319165443.GI3572@momjian.us> References: <20210317164907.c4uogoqvchnwcnjy@nol> <20210317223216.GE16650@momjian.us> <20210317232956.veah6bax3mespdtq@nol> <20210318134729.GA8529@momjian.us> <20210318180656.3aat6jkbs7ylcg4k@nol> <20210318192349.GD3721@momjian.us> <20210319031650.aqy3ad7fpqsudo3b@nol> <20210319132906.GG3572@momjian.us> <20210319142751.vsvsjbp4bsvbh4ek@nol> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210319142751.vsvsjbp4bsvbh4ek@nol> 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, Mar 19, 2021 at 10:27:51PM +0800, Julien Rouhaud wrote: > On Fri, Mar 19, 2021 at 09:29:06AM -0400, Bruce Momjian wrote: > > OK, that makes perfect sense. I think the best solution is to document > > that compute_query_id just controls the built-in computation of the > > query id, and that extensions can also compute it if this is off, and > > pg_stat_activity and log_line_prefix will display built-in or extension > > computed query ids. > > So the last version of the patch should implement that behavior right? It's > just missing some explicit guidance that third-party extensions should only > calculate a queryid if compute_query_id is off Yes, I think we are now down to just how the extensions should be told to behave, and how we document this --- see the email I just sent. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.