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 1pk90J-0001ZS-Ga for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 19:41:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pk90I-0007q2-CS for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Apr 2023 19:41:10 +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 1pk90I-0007pt-1Y for pgsql-hackers@lists.postgresql.org; Wed, 05 Apr 2023 19:41:10 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pk90F-00085i-MP for pgsql-hackers@postgresql.org; Wed, 05 Apr 2023 19:41:09 +0000 Received: by mail-ot1-x32f.google.com with SMTP id a30-20020a9d3e1e000000b006a13f728172so16425718otd.3 for ; Wed, 05 Apr 2023 12:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680723667; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bbZC+FSyyevppeeyopaMffPLzE45QqvWx+HNentIPuQ=; b=IwzwCDcm9v3qh59/waS8rhjK2jtUmVw0JfIaiklECGZfCkEOnFn1HXlkoxYePmB2ZH y9wlACdM86Jb/ik3EkvdEVQIpgMkLT0mdD5ecYaCFNi7Y98hgmuOSj1l7Y2KlnDNMimd Iyd7itQr1fKI4bZsvY8lS9RIHAhYIZz0EWMjBOoE7OQi1uJ+XjoHYXlUuyVPg9GM9CgY JNKAjO6GHx0ljVu9Qyj0WyewqSt2lv8wqCBUyDHC38x+xDcqTM+0AwuxtzaKZfPn2B/I 87J8JUyfwG3aHEcPam54lKESpdyelyAPx64qMI1q/YUQ7FrooKx5kyV8X4ufl5AhBJXP uurg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680723667; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bbZC+FSyyevppeeyopaMffPLzE45QqvWx+HNentIPuQ=; b=Gn3omL79hxGbjNnLdLlBgblD84JpITRAeMPvUXpX2tlIJoWK5orqiRLAm5GxL6q6wB UkxJ8uIHgSVeX9piRZyKm37G/u191HKZQF++sFyQsoZot1tCW31OORL0j1sb5/KJa/DB XL0+ET/kCUbhTbhlzuPcn+1hP7WJRqZBF5O8W1pUSAu/9yBrqOBlFysco3+8+DdpvSo5 2STkWeX6G/nHBYOTmLaArqULvspJMnKIIGjkiSC0EMfr/B2VJmDD+bcrHjDUayt1Tb+6 69o+CwAJ18khzwgQZfLvjgMfiZhf/CewaHsb7kc0O8G5smG0CDQU6dnIy/Jz4p8b3asr ssJg== X-Gm-Message-State: AAQBX9cEofa3X+x1plr8XAgNe3abLWj9wHU4IOMvk5okgG2JTvKOrrvh nkGt8vTq32Zqp5Y4qD01XlI= X-Google-Smtp-Source: AKy350ZhJIL7AFXNIqoPFvXSDPPx0SkjEVAQtP8KiIQaTmvQvhNM7vTZAABZygLh7ObGaSeV4VNxhQ== X-Received: by 2002:a9d:7b55:0:b0:69f:578a:d1ea with SMTP id f21-20020a9d7b55000000b0069f578ad1eamr3266073oto.32.1680723667009; Wed, 05 Apr 2023 12:41:07 -0700 (PDT) Received: from nathanxps13 ([2600:1700:48f8:340f:6dda:ddf6:65e:9e21]) by smtp.gmail.com with ESMTPSA id f5-20020a9d6c05000000b006a154373578sm7087798otq.39.2023.04.05.12.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 12:41:04 -0700 (PDT) Date: Wed, 5 Apr 2023 12:41:01 -0700 From: Nathan Bossart To: Andres Freund Cc: Robert Haas , pgsql-hackers@postgresql.org, schneider@ardentperf.com Subject: Re: monitoring usage count distribution Message-ID: <20230405194101.GB105962@nathanxps13> References: <20230130233040.GA2800702@nathanxps13> <20230404232919.uibzbhjdylk3mlvp@awork3.anarazel.de> <20230405175124.GA31516@nathanxps13> <20230405190921.ck7v4y2h3ogoanvg@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405190921.ck7v4y2h3ogoanvg@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 really > 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_summary a view on pg_buffercache_usage_counts, too, but that doesn't strike me as tremendously important. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com