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 1pk9YY-0003IU-3d for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 20:16:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pk9YW-0000Jn-N5 for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 20:16:32 +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 1pk9YW-0000Jc-DE for pgsql-hackers@lists.postgresql.org; Wed, 05 Apr 2023 20:16:32 +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 1pk9YT-00176b-Ja for pgsql-hackers@postgresql.org; Wed, 05 Apr 2023 20:16:31 +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 335KGODQ2061856; Wed, 5 Apr 2023 16:16:24 -0400 From: Tom Lane To: Nathan Bossart cc: Andres Freund , Robert Haas , pgsql-hackers@postgresql.org, schneider@ardentperf.com Subject: Re: monitoring usage count distribution In-reply-to: <20230405194101.GB105962@nathanxps13> References: <20230130233040.GA2800702@nathanxps13> <20230404232919.uibzbhjdylk3mlvp@awork3.anarazel.de> <20230405175124.GA31516@nathanxps13> <20230405190921.ck7v4y2h3ogoanvg@awork3.anarazel.de> <20230405194101.GB105962@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Wed, 05 Apr 2023 12:41:01 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2061854.1680725784.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Apr 2023 16:16:24 -0400 Message-ID: <2061855.1680725784@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Wed, Apr 05, 2023 at 12:09:21PM -0700, Andres Freund wrote: >> I would not mind having a separate function returning 6 rows, if we rea= lly >> want that, but making pg_buffercache_summary() return 6 rows would imo = make it >> less useful for getting a quick overview. At least I am not that quick = summing >> up multple rows, just to get a quick overview over the number of dirty = rows. > This is what v1-0001 does. We could probably make pg_buffercache_summar= y a > view on pg_buffercache_usage_counts, too, but that doesn't strike me as > tremendously important. 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? regards, tom lane