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 1oBRxT-0005Bi-FM for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2022 02:18:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oBRxS-0002hN-0h for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2022 02:18:34 +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 1oBRxQ-0002gn-DW for pgsql-hackers@lists.postgresql.org; Wed, 13 Jul 2022 02:18:33 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBRxN-00080A-AG for pgsql-hackers@postgresql.org; Wed, 13 Jul 2022 02:18:31 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id A896632008C0; Tue, 12 Jul 2022 22:18:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 12 Jul 2022 22:18:25 -0400 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; t=1657678704; x=1657765104; bh=n3nsIGI+If e78Fjc8ANdU8TdHbhmb4PZLR1YbipwoTQ=; b=WoB2GnigbLtKRqzsT5kNydEVM7 MocBEBv519GzRGSxk9HrUKmGwjUNOBUw0s5kkZKxDkgz+9SeGyX53IjCKLCgmFIN FYGNCJbkFJij5L+lG6bSpimXR6iKmo/KINZrbOS2VR/BR6dHAWbY84nkTIbbjexN Z8PVzQxcfyEWwyS3814yn7qeScY1AhY3KOjlabApGvFi7GQLIpjfUmIio9yakJM7 YqXvJUEQOnCguhn632p1nbZvjOA9R47RDMOA9tgFFCg04nPfYSOx76dTgjn8j+0+ GMgd2rRMb8vLkCJYb18xKU2YV9L9zSAtuT1C7gqbAm1J263SC7EnU/Rva/XA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id: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= fm3; t=1657678704; x=1657765104; bh=n3nsIGI+Ife78Fjc8ANdU8TdHbhm b4PZLR1YbipwoTQ=; b=jfMqRpSeJwLaNL2VpHyikx2wLd/BNXfhTJEtKJDV2xRP BK8q6CKZCQusyhKduKvWhD5zSJdSfR1364IFYTj5jau/mIZKu3Vh32TCAK5fB3DQ Bwyd27yp2AXDhp4SQxLDoeHeAaTLyHhCJAWqeEpR21pYQQjjmbXYBX/a0nfy5IpN bSBdOlaBfvWZx4WGvDboHsMI4nUl1q/NKQABu322u+2u8o930JPsgEqwnuaJzWlx BAueyLVJniFWkSmvQzKc2hABE6SLu+Jw38NtgWdK4BXLSGKplwFSbN5raVXf0s9O HlOpmH9IeFbQ+nTLs2omex8RoHP1oantKBZ3IfLQZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejiedgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegr nhgrrhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpedvffefvefhteevffegieetfe fhtddvffejvefhueetgeeludehteevudeitedtudenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Jul 2022 22:18:23 -0400 (EDT) Date: Tue, 12 Jul 2022 19:18:22 -0700 From: Andres Freund To: Kyotaro Horiguchi Cc: melanieplageman@gmail.com, pryzby@telsasoft.com, alvherre@alvh.no-ip.org, magnus@hagander.net, pgsql-hackers@postgresql.org, lukas@fittl.com, thomas.munro@gmail.com Subject: Re: pg_stat_bgwriter.buffers_backend is pretty meaningless (and more?) Message-ID: <20220713021822.x64uhtedsbhdxpmk@awork3.anarazel.de> References: <20220712.170621.2168803584651416807.horikyota.ntt@gmail.com> <20220713.110007.1500596558876122350.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220713.110007.1500596558876122350.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-07-13 11:00:07 +0900, Kyotaro Horiguchi wrote: > I imagined to use B_INVALID as a kind of "default" partition, which > accepts all unknown backend types. There shouldn't be any unknown backend types. Something has gone wrong if we get far without a backend type set. > We can just ignore that values but then we lose the clue for malfunction of > stats machinery. I thought that that backend-type as the sentinel for > malfunctions. Thus we can emit logs instead. > > I feel that the stats machinery shouldn't stop the server as possible, > or I think it is overreaction to abort for invalid values that can be > easily coped with. I strongly disagree. That just ends up with hard to find bugs. Greetings, Andres Freund