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 1kS2Wd-00055O-Ot for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Oct 2020 18:26:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kS2Wc-00046P-M9 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Oct 2020 18:26:22 +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 1kS2Wc-00046I-FZ for pgsql-hackers@lists.postgresql.org; Mon, 12 Oct 2020 18:26:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kS2Wa-0002nX-7m for pgsql-hackers@lists.postgresql.org; Mon, 12 Oct 2020 18:26:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 09CIQF693199564; Mon, 12 Oct 2020 14:26:15 -0400 From: Tom Lane To: Robert Haas cc: Bruce Momjian , Julien Rouhaud , 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? In-reply-to: References: <1817289.1601934179@sss.pgh.pa.us> <20201005225842.GA8918@alvherre.pgsql> <20201006021819.GA10975@momjian.us> <20201006032350.GA3686@momjian.us> <20201006053458.GA429@paquier.xyz> <20201006132229.GB3686@momjian.us> <20201007014249.GB2256@paquier.xyz> <20201007015346.GF12277@momjian.us> <20201012141445.GA24889@momjian.us> Comments: In-reply-to Robert Haas message dated "Mon, 12 Oct 2020 13:30:50 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3199562.1602527175.1@sss.pgh.pa.us> Date: Mon, 12 Oct 2020 14:26:15 -0400 Message-ID: <3199563.1602527175@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > I don't really understand how a version number helps. It's not like > there is going to be a v2 that is in all ways better than v1. If there > are different algorithms here, they are going to be customized for > different needs. Yeah, I agree --- a version number is the wrong way to think about this. It's gonna be more like algorithm foo versus algorithm bar versus algorithm baz, where each one is better for a specific set of use-cases. Julien already noted the point about hashing object OIDs versus object names; one can easily imagine disagreeing with pg_stat_statement's choices about ignoring values of constants; other properties of statements might be irrelevant for some use-cases; and so on. I'm okay with moving pg_stat_statement's existing algorithm into core as long as there's a way for extensions to override it. With proper design, that would allow extensions that do override it to coexist with pg_stat_statements (thereby redefining the latter's idea of which statements are "the same"), which is something that doesn't really work nicely today. regards, tom lane