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 1lJXKL-0005az-6u for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Mar 2021 08: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 1lJXKK-0000YO-4P for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Mar 2021 08:02:48 +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 1lJXKJ-0000YG-TY for pgsql-hackers@lists.postgresql.org; Tue, 09 Mar 2021 08:02:47 +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 1lJXKH-00068n-If for pgsql-hackers@postgresql.org; Tue, 09 Mar 2021 08:02:46 +0000 Received: from hnk.local (sp183-74-205-154.msb.spmode.ne.jp [183.74.205.154]) by oss.nttdata.com (Postfix) with ESMTPSA id ACB7B62760; Tue, 9 Mar 2021 17:02:41 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: About to add WAL write/fsync statistics to pg_stat_wal view To: "David G. Johnston" Cc: Masahiro Ikeda , PostgreSQL-development , Masahiko Sawada , Li Japin , kuroda.hayato@fujitsu.com References: <0509ad67b585a5b86a83d445dfa75392@oss.nttdata.com> <925e940a832e96ca5d7276a4cc3dec83@oss.nttdata.com> <3df6e23e3e1e9cd95b08c943ef320046@oss.nttdata.com> <23a9f71817f616135551e2fde5ef362e@oss.nttdata.com> <930cae989a0fe8db6870cbeb5f24cf97@oss.nttdata.com> <9a70efda-6f47-8b1c-0513-419e1185000a@oss.nttdata.com> <6c8932c2b0756971e4b28f06af07be9a@oss.nttdata.com> <4a81fc95615db54b75f59759752b2cef@oss.nttdata.com> <49d412cc-2e39-a487-1861-a8560ebb88cb@oss.nttdata.com> <11c4230c-9ae5-0a56-2139-543d8453ab75@oss.nttdata.com> <718082d08f9971608bc0c63d2f8a79bb@oss.nttdata.com> <60cb8410-1390-9078-bc74-d69c823c755d@oss.nttdata.com> <18725ca54edbf6af2c0e500055a66fd9@oss.nttdata.com> From: Fujii Masao Message-ID: <42ce8bed-823d-9281-f24c-9ed3bfe71bc9@oss.nttdata.com> Date: Tue, 9 Mar 2021 17:02:40 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021/03/09 4:47, David G. Johnston wrote: > On Mon, Mar 8, 2021 at 8:48 AM Fujii Masao > wrote: > > > Thanks for updating the patch! I applied cosmetic changes to that. > Patch attached. Barring any objection, I will commit this version. > > > Read over the patch and it looks good. Thanks for the review! I committed the patch. > > One minor "the" omission (in a couple of places, copy-paste style): > > +       See for more information about > +       internal WAL function XLogWrite. > > "about *the* internal WAL function" I added "the" in such two places. Thanks! > > Also, I'm not sure why you find omitting documentation that the millisecond field has a fractional part out to microseconds to be helpful. If this information should be documented, we should do that for not only wal_write/sync_time but also other several columns, for example, pg_stat_database.blk_write_time? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION