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 1pkTTY-0002s4-TC for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2023 17:32:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pkTTX-00075M-NJ for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2023 17:32:43 +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 1pkTTX-00075C-Dc for pgsql-hackers@lists.postgresql.org; Thu, 06 Apr 2023 17:32:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pkTTU-001Hge-PI for pgsql-hackers@postgresql.org; Thu, 06 Apr 2023 17:32:42 +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 336HWZKV2478092; Thu, 6 Apr 2023 13:32:35 -0400 From: Tom Lane To: Robert Haas cc: Nathan Bossart , Andres Freund , pgsql-hackers@postgresql.org, schneider@ardentperf.com Subject: Re: monitoring usage count distribution In-reply-to: References: <20230130233040.GA2800702@nathanxps13> <20230404232919.uibzbhjdylk3mlvp@awork3.anarazel.de> <20230405175124.GA31516@nathanxps13> <20230405190921.ck7v4y2h3ogoanvg@awork3.anarazel.de> <20230405194101.GB105962@nathanxps13> <2061855.1680725784@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 06 Apr 2023 13:20:53 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2478090.1680802355.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 06 Apr 2023 13:32:35 -0400 Message-ID: <2478091.1680802355@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Wed, Apr 5, 2023 at 4:16 PM Tom Lane wrote: >> Having two functions doesn't seem unreasonable to me either. >> Robert spoke against it to start with, does he still want to >> advocate for that? > My position is that if we replace the average usage count with > something that gives a count for each usage count, that's a win. I > don't have a strong opinion on an array vs. a result set vs. some > other way of doing that. If we leave the average usage count in there > and add yet another function to give the detail, I tend to think > that's not a great plan, but I'll desist if everyone else thinks > otherwise. There seems to be enough support for the existing summary function definition to leave it as-is; Andres likes it for one, and I'm not excited about trying to persuade him he's wrong. But a second slightly-less-aggregated summary function is clearly useful as well. So I'm now thinking that we do want the patch as-submitted. (Caveat: I've not read the patch, just the description.) regards, tom lane