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 1kmLgQ-0007ur-PX for pgsql-committers@arkaria.postgresql.org; Mon, 07 Dec 2020 18:56:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kmLgP-0002CK-MS for pgsql-committers@arkaria.postgresql.org; Mon, 07 Dec 2020 18:56:25 +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 1kmLgP-0002CD-H9 for pgsql-committers@lists.postgresql.org; Mon, 07 Dec 2020 18:56:25 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmLgI-0000RF-OQ for pgsql-committers@lists.postgresql.org; Mon, 07 Dec 2020 18:56:25 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 63D7DF93; Mon, 7 Dec 2020 13:56:16 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 07 Dec 2020 13:56:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=OnJyEYXCBhRFXJtpNmSyonp2VI/ c9XJUoCFEdJLwc6k=; b=VQwAjoCSkBt5hN8aIs7TD0ZPPZdPylm5nUeBVjmZ0Ka KY2u9XnxjB/Xn3F1k2WllfDDcZEzMBoS6f/AAnTYdU/s1x5TF0ENs59Y17lug2oL G8BGk5NF1kuxewK7t4d28PDTNkAOOT/uaGa4UkHZ8YVrvq0rbsW9aSUbx5bH7c2P EhtbTThgYQroKk1HrAbo0OSYjlCjkk2R7mV09XqKT2iqPrqel4AWNiJFceoqz3ns ZjFS4QEqSM2gdtdbx8yX+lBcATMhYXRV5JnwLL32z9RVJNfGo3lJsGjDX6zudO70 j1/gdAt3bycTOqDodWilMZoYweC4XNBWeuTXX1vwajg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=OnJyEY XCBhRFXJtpNmSyonp2VI/c9XJUoCFEdJLwc6k=; b=Q50aSkD+cSVv3ClTPfiHii 0W5jUnKRJZ3v8ansuJevLQhwuAYX/eyec8t2Ml8ibG3sHxQqgHC+PNajWCp0bRPc e+8yjn2ybp0kbZ1/jIrDXyrYVhHQRsTQ3yVfTLmiNArd2ny1Qyovuyb+nb70eMzw 5u0Ni6q/xx/AyF+8nQMvTRXNHXfZBZ+0XmoSehan7lMhQCdDzvd8NK38qAizLS5t PusMTLUp0g4u7XukjwcVUwXRbW5PDDNQ8Zzh3Vq+1KQUqqADmwHm44kMGOdgnn+b VWXW98Kuf4Jn9GJoFlebXocwNJdU7/23jQ6E/r+fl+bYasMLgQk/FtPcWtx1LsIg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudejgedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepffdvvdevleelgffhheeitdevhfefgfeivdevieeltdffkeefgffguedt keeiheejnecuffhomhgrihhnpehpohhsthhgrhdrvghsnecukfhppeeijedrudeitddrvd dujedrvdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 6E2D11080063; Mon, 7 Dec 2020 13:56:15 -0500 (EST) Date: Mon, 7 Dec 2020 10:56:14 -0800 From: Andres Freund To: Fujii Masao Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Track total number of WAL records, FPIs and bytes generated in t Message-ID: <20201207185614.zzf63vggm5r4sozg@alap3.anarazel.de> References: 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: Precedence: bulk Hi, On 2020-12-02 04:04:57 +0000, Fujii Masao wrote: > Track total number of WAL records, FPIs and bytes generated in the cluster. > > Commit 6b466bf5f2 allowed pg_stat_statements to track the number of > WAL records, full page images and bytes that each statement generated. > Similarly this commit allows us to track the cluster-wide WAL statistics > counters. > > New columns wal_records, wal_fpi and wal_bytes are added into the > pg_stat_wal view, and reports the total number of WAL records, > full page images and bytes generated in the , respectively. > > Author: Masahiro Ikeda > Reviewed-by: Amit Kapila, Movead Li, Kyotaro Horiguchi, Fujii Masao > Discussion: https://postgr.es/m/35ef960128b90bfae3b3fdf60a3a860f@oss.nttdata.com This is missing a catversion bump, due to the changes in view names. Noticed that because I got errors like -- There must be only one record select count(*) = 1 as ok from pg_stat_wal; - ok ----- - t -(1 row) - +ERROR: function return row and query-specified return row do not match +DETAIL: Returned row contains 5 attributes, but query expects 2. -- This is to record the prevailing planner enable_foo settings during -- a regression test run. when running tests against a pre-existing cluster after rebasing a development tree. Greetings, Andres Freund