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 1jgChX-0006h4-3p for pgsql-docs@arkaria.postgresql.org; Tue, 02 Jun 2020 19:35:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jgChV-0007oZ-R6 for pgsql-docs@arkaria.postgresql.org; Tue, 02 Jun 2020 19:35:53 +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 1jgChV-0007oS-Ld for pgsql-docs@lists.postgresql.org; Tue, 02 Jun 2020 19:35:53 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgChT-0007cb-1l for pgsql-docs@lists.postgresql.org; Tue, 02 Jun 2020 19:35:53 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jgChP-00079R-M6; Tue, 02 Jun 2020 15:35:47 -0400 Date: Tue, 2 Jun 2020 15:35:47 -0400 From: Bruce Momjian To: p.luzanov@postgrespro.ru Cc: "David G. Johnston" , pluzanov@postgrespro.ru, pgsql-docs@lists.postgresql.org Subject: Re: max_wal_size Message-ID: <20200602193547.GA26240@momjian.us> References: <159057129673.7025.17016799863173731176@wrigleys.postgresql.org> <92491c6d07a3216ef2caee8ef55c02b5@postgrespro.ru> <8aac88e2a22cd84e50ee1a2bcf3da9b7@postgrespro.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, May 28, 2020 at 12:21:14PM +0300, p.luzanov@postgrespro.ru wrote: > WAL |-----------|-----+-----|-----+-----|-----+-----> > > a b c > CP +-----+ +-----+ +-----+ > b e b e b e > > Checkpointer process for point A starts at a(b) and ends at a(e). > At the end of the work, CP makes a WAL record(plus symbol on WAL line). > > Back to the max_wal_size description: > "Maximum size to let the WAL grow to between automatic WAL checkpoints." > > As I understand now, this is true when we talk about the checkpoint as a > process. > "Maximum size to let the WAL grow to between a(b) and b(e), between b(b) and c > (e), etc". What if we say: "Maximum size to let the WAL grow during automatic WAL checkpoints." That highlights the "process" part. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee