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 1jLUhg-0008M9-2J for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2020 16:34:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLUhf-00008g-1V for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2020 16:34:27 +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 1jLUhe-00008W-Qr for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2020 16:34:26 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jLUhc-00031D-KA for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2020 16:34:26 +0000 Received: by mail-qt1-x843.google.com with SMTP id b10so168889qtt.9 for ; Mon, 06 Apr 2020 09:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=01Xue6tmI17k2Rr7kbiriXilFCXPh2HLMeo/cWRb7Vg=; b=vQSei4FAcAG+oEbps2g9BB31NE8/7PFgpiBK+Ri5c8s/XH+mp/DUPxIaLv6ayFaVZa IV88PlhU91bQG4FtcMUdokOqZwmoU9p68awsikCxg8x9UB7GXtv87xTxGDQ0OUpIco0i 7WJhKde1SSIS777+JfLxaYpWeSsFiZMqJ67GzOe58JwcTd00lrorIypYM9vq6ArexO1E FLcfY+GoSkE2f2sbXEicV55i4BEKuxIVEMKKo+a8d/Vh2epTyBzcg0/RdHBQRHNpOm/D i/uFI9VP98F1XQXZoW0p6oUgIK93KBvtLcfq5+56PrJtwPvr0uN8oz1QvRQOkrMaJYTG 6ZRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=01Xue6tmI17k2Rr7kbiriXilFCXPh2HLMeo/cWRb7Vg=; b=cSDWpDcvgGpSx4espUOw6YMNGwVFNqQA+LEuhCjQKzfMyI/9rxjMAEcYAZhcEwtZVc YWJ7dHclI/ZDYDK48oGcybz+ljtu84USbGmjZa4hp/jweKyG1DCxJjyK4YwR+IywLG5c eP/v0n1olkY35/zBpYk6Igp0onVUO34gybYNUncSRQfuS+GQSKWh56aYy0DSrT5msfKs YwFtlNJB8vUB5+igX24pGe+AmB3EzdeAcyo735CwrFkxPdIjMMaQ4aOiKnKuznIxLCus JjLmOLhH6DbjIrP9AJA07jZZ+wkzafIt8Th038dmBmPaivYLcNmpAAmy0oW1y2B1/2bs X9iA== X-Gm-Message-State: AGi0Pub5j8t2vEIwY9VLQCYA8G3l7UGhWq33p76KS/hVkA2QV03OLC+0 vSaD015lJ9qLNIfeKFnTkqr0KA== X-Google-Smtp-Source: APiQypJsXEhqkVfep0IGy7SiI4jEBk3fcXbvguzleuBCXs7bBzUjPTU9sLw0WubaXfw/BZQ6UXfpHg== X-Received: by 2002:ac8:45da:: with SMTP id e26mr233422qto.1.1586190862975; Mon, 06 Apr 2020 09:34:22 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id z43sm15736094qtb.92.2020.04.06.09.34.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Apr 2020 09:34:21 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 699BB8007F7; Mon, 6 Apr 2020 11:34:20 -0500 (CDT) Date: Mon, 6 Apr 2020 11:34:20 -0500 From: Justin Pryzby To: Julien Rouhaud Cc: Amit Kapila , Kyotaro Horiguchi , PostgreSQL Hackers , Dilip Kumar , Kirill Bychik , Fujii Masao Subject: Re: User Interface for WAL usage data Message-ID: <20200406163420.GE2228@telsasoft.com> References: <20200402054120.GC14618@telsasoft.com> <20200402.145826.78549992113208057.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 02, 2020 at 08:29:31AM +0200, Julien Rouhaud wrote: > > > "full page records" seems to be showing the number of full page > > > images, not the record having full page images. > > > > I am not sure what exactly is a difference but it is the records > > having full page images. Julien correct me if I am wrong. > Obviously previous complaints about the meaning and parsability of > "full page writes" should be addressed here for consistency. There's a couple places that say "full page image records" which I think is language you were trying to avoid. It's the number of pages, not the number of records, no ? I see explain and autovacuum say what I think is wanted, but these say the wrong thing? Find attached slightly larger patch. $ git grep 'image record' contrib/pg_stat_statements/pg_stat_statements.c: int64 wal_num_fpw; /* # of WAL full page image records generated */ doc/src/sgml/ref/explain.sgml: number of records, number of full page image records and amount of WAL -- Justin --8P1HSweYDcXXzwPJ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-doc-WAL-usage.patch" From 6819c8c61c7fe2294b132a72c3897dc5cb801c4f Mon Sep 17 00:00:00 2001 From: Justin Pryzby Date: Mon, 6 Apr 2020 11:28:08 -0500 Subject: [PATCH v1] doc: WAL usage See also: 6b466bf5f2bea0c89fab54eef696bcfc7ecdafd7 33e05f89c53e5a1533d624046bb6fb0da7bb7141 --- contrib/pg_stat_statements/pg_stat_statements.c | 2 +- doc/src/sgml/pgstatstatements.sgml | 6 +++--- doc/src/sgml/ref/explain.sgml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index 04abdab904..3bcf34c669 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -189,7 +189,7 @@ typedef struct Counters double blk_write_time; /* time spent writing, in msec */ double usage; /* usage factor */ int64 wal_records; /* # of WAL records generated */ - int64 wal_num_fpw; /* # of WAL full page image records generated */ + int64 wal_num_fpw; /* # of WAL full page images generated */ uint64 wal_bytes; /* total amount of WAL bytes generated */ } Counters; diff --git a/doc/src/sgml/pgstatstatements.sgml b/doc/src/sgml/pgstatstatements.sgml index 3d26108649..de28016a02 100644 --- a/doc/src/sgml/pgstatstatements.sgml +++ b/doc/src/sgml/pgstatstatements.sgml @@ -269,7 +269,7 @@ numeric - Total amount of WAL bytes generated by the statement + Total number of WAL bytes generated by the statement @@ -278,7 +278,7 @@ bigint - Total count of WAL records generated by the statement + Total number of WAL records generated by the statement @@ -287,7 +287,7 @@ bigint - Total count of WAL full page writes generated by the statement + Total number of WAL full page writes generated by the statement diff --git a/doc/src/sgml/ref/explain.sgml b/doc/src/sgml/ref/explain.sgml index 024ede4a8d..4a9f94d7f8 100644 --- a/doc/src/sgml/ref/explain.sgml +++ b/doc/src/sgml/ref/explain.sgml @@ -198,7 +198,7 @@ ROLLBACK; Include information on WAL record generation. Specifically, include the - number of records, number of full page image records and amount of WAL + number of records, number of full page images and number of WAL bytes generated. In text format, only non-zero values are printed. This parameter may only be used when ANALYZE is also enabled. It defaults to FALSE. -- 2.17.0 --8P1HSweYDcXXzwPJ--