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 1kShie-0001bI-Sa for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Oct 2020 14:25:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kShid-00052E-Ob for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Oct 2020 14:25:31 +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 1kShid-000527-IS for pgsql-hackers@lists.postgresql.org; Wed, 14 Oct 2020 14:25:31 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kShib-0006dv-AZ for pgsql-hackers@lists.postgresql.org; Wed, 14 Oct 2020 14:25:30 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kShiV-0002yc-Qy; Wed, 14 Oct 2020 10:25:23 -0400 Date: Wed, 14 Oct 2020 10:25:23 -0400 From: Bruce Momjian To: Julien Rouhaud Cc: Tom Lane , Robert Haas , Michael Paquier , Alvaro Herrera , 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: <20201014142523.GA9415@momjian.us> References: <20201012141445.GA24889@momjian.us> <3199563.1602527175@sss.pgh.pa.us> <20201012195443.GC24889@momjian.us> <3250173.1602533250@sss.pgh.pa.us> <20201012205340.GD24889@momjian.us> <20201014140915.GJ24889@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Oct 14, 2020 at 10:21:24PM +0800, Julien Rouhaud wrote: > On Wed, Oct 14, 2020 at 10:09 PM Bruce Momjian wrote: > > > > OK, I came up with the hash idea only to address one of your concerns > > > > about mismatched hashes for algorithm improvements/changes. Seems we > > > > might as well just document that cross-version hashes are different. > > > > > > Ok, so I tried to implement what seems to be the consensus. First > > > attached patch moves the current pgss queryid computation in core, > > > with a new compute_queryid GUC (on/off). One thing I don't really > > > > Why would someone turn compute_queryid off? Overhead? > > Yes, or possibly to use a different algorithm. Is there a measureable overhead when this is turned on, since it is off by default and maybe should default to on. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee