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 1nNFdo-00075q-Jg for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 15:02:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNFdm-0008Kb-SK for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 15:02:46 +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 1nNFdl-0008EQ-Kh for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 15:02:46 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNFdg-0001Rm-Pu for pgsql-hackers@postgresql.org; Thu, 24 Feb 2022 15:02:45 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 1022E32009DB; Thu, 24 Feb 2022 10:02:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 24 Feb 2022 10:02:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=gu9EZVduF6AwqKIAaVkFJ79frvaCkx60m7K0LJ kuT5A=; b=txd2Dpyyu4WqSYXnj2pVq1chLoxdKqo2wvEO6RFg0S8pjxzqkKn4nv MKTcB09/75qK0mx8f3EejeACXIhzH65RmjJA2usjVFQpEjEQh5bzkqO/BCpD7RZd UB9HWdt0/SH7E6rDtEofrb787ar+dOyu1EDCSiOR5Ef8svrbizbhOI4rZyCv5+6w hCnrnQB0r8SLNWhU+jRlwz8IV6E+sCU+dtTp02GGDNZj/ltk5qJzRn1XcUKQPHF8 wpajOWJFbLKGHg4wT98Kc5fzRLOzTfyIt5pYFQFea93ReP2SjS48SZGqAmi+4Wwf o/cHq//Sq1T2K/ezioZZpt/oGDpS1UsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=gu9EZVduF6AwqKIAa VkFJ79frvaCkx60m7K0LJkuT5A=; b=h9DBaozIPXpQL7P2cdV4zbmi4diUB3YAh 4wx7rpZo2oqEchlnccjqXi10r6mL1C2I+/8BrYLnPmhfwAjiAJ/r9Bb10Gi2YQ1q fFEqSF1HKsHjPxwURFHI6YGkxDvR3vXBneimS82VUruBOQySflWok+sfPPt3M2ox yZ+oYCbKADAaoNLyOBgFoPT6vm4ESN0g7yp9vcZXkZ0PY/iZ3R6tYwgaNujLylL8 rGyNbvNabeOSIaIslCO0jXBnTMsAlw7fUgDkibS09A8Fpv9bnKsrAHB6GXBkcGSg vYTryt5fqzgsgLukRCJnxn7tLoeugcK+kWeM1j0OWx0asVdexs1ug== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrledvgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeffhfeu ffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Feb 2022 10:02:34 -0500 (EST) Date: Thu, 24 Feb 2022 06:45:38 -0800 From: Andres Freund To: Peter Eisentraut Cc: Masahiko Sawada , Peter Smith , Amit Kapila , "David G. Johnston" , pgsql-hackers Subject: Re: Design of pg_stat_subscription_workers vs pgstats Message-ID: <20220224144538.42wizqk4hxdepe5a@alap3.anarazel.de> References: <20220221053453.lo6fzmji23ennvgj@alap3.anarazel.de> <20220221074806.nyhdberpuwbcbudp@alap3.anarazel.de> <6f7701b0-ce5c-d01c-18f2-5de3a02ff6b6@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-02-24 13:23:55 +0100, Peter Eisentraut wrote: > On 24.02.22 12:46, Masahiko Sawada wrote: > > > We have a view called pg_stat_activity, which is very well known. From > > > that perspective, "activity" means what is happening right now or what > > > has happened most recently. The reworked view in this patch does not > > > contain that (we already have pg_stat_subscription for that), but it > > > contains accumulated counters. > > Right. > > > > What pg_stat_subscription shows is rather suitable for the name > > pg_stat_subscription_activity than the reworked view. But switching > > these names would also not be a good idea. I think it's better to use > > "subscription" in the view name since it shows actually statistics for > > subscriptions and subscription OID is the key. I personally prefer > > pg_stat_subscription_counters among the ideas that have been proposed > > so far, but I'd like to hear opinions and votes. > > _counters will fail if there is something not a counter (such as > last-timestamp-of-something). > > Earlier, pg_stat_subscription_stats was mentioned, which doesn't have that > problem. We really should try to fix this in a more general way at some point. We have way too many different things mixed up in pg_stat_*. I'd like to get something like the patch in soon though, we can still change the name later. I've been blocked behind this stuff for weeks, and it's getting really painful... Greetings, Andres Freund