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 1kmbei-0003ps-0Y for pgsql-committers@arkaria.postgresql.org; Tue, 08 Dec 2020 11:59:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kmbeg-0000kT-9j for pgsql-committers@arkaria.postgresql.org; Tue, 08 Dec 2020 11:59:42 +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 1kmbeg-0000kM-4K for pgsql-committers@lists.postgresql.org; Tue, 08 Dec 2020 11:59:42 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmbed-0006gR-My for pgsql-committers@lists.postgresql.org; Tue, 08 Dec 2020 11:59:41 +0000 Received: from hnk.local (p1295030-ipngn4902funabasi.chiba.ocn.ne.jp [153.166.85.30]) by oss.nttdata.com (Postfix) with ESMTPSA id 0B16B602D0; Tue, 8 Dec 2020 20:59:33 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: pgsql: Track total number of WAL records, FPIs and bytes generated in t To: Andres Freund , Fujii Masao Cc: pgsql-committers@lists.postgresql.org References: <20201207185614.zzf63vggm5r4sozg@alap3.anarazel.de> From: Fujii Masao Message-ID: Date: Tue, 8 Dec 2020 20:59:33 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20201207185614.zzf63vggm5r4sozg@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/12/08 3:56, Andres Freund wrote: > 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. Thanks for reporting this! You are right. Sorry I forgot to bump that. I will do that. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION