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 1pk8TX-0007sl-Ke for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 19:07:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pk8TW-0001Nd-HM for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 19:07:18 +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 1pk8TW-0001NU-7g for pgsql-hackers@lists.postgresql.org; Wed, 05 Apr 2023 19:07:18 +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 1pk8TT-0016Ok-LP for pgsql-hackers@postgresql.org; Wed, 05 Apr 2023 19:07:17 +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 335J7AfW2020453; Wed, 5 Apr 2023 15:07:10 -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> Comments: In-reply-to Robert Haas message dated "Wed, 05 Apr 2023 15:00:20 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2020451.1680721630.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Apr 2023 15:07:10 -0400 Message-ID: <2020452.1680721630@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 1:51=E2=80=AFPM Nathan Bossart wrote: >> The six-element array approach won't show the number of dirty and pinne= d >> buffers for each usage count, but I'm not sure that's a deal-breaker. >> Barring objections, I'll post an updated patch shortly with that approa= ch. > Right, well, I would personally be OK with 6 rows too, but I don't > know what other people want. I think either this or that is better > than average. Seems to me that six rows would be easier to aggregate manually. An array column seems less SQL-ish and harder to manipulate. regards, tom lane