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 1je3M0-0001XO-QL for pgsql-docs@arkaria.postgresql.org; Wed, 27 May 2020 21:12: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 1je3Lx-0001dd-Cy for pgsql-docs@arkaria.postgresql.org; Wed, 27 May 2020 21:12:45 +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 1je3Lx-0001cz-5X for pgsql-docs@lists.postgresql.org; Wed, 27 May 2020 21:12:45 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1je3Lp-00040z-PC for pgsql-docs@lists.postgresql.org; Wed, 27 May 2020 21:12:43 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id BC62F21C6B4A; Thu, 28 May 2020 00:12:34 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from mail.postgrespro.ru (unknown [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 98ED921C672B; Thu, 28 May 2020 00:12:34 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1590613954; bh=29kUPRzSzuluzDdztdW/4oEX12Q5R43QiPzam7voyQg=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=lue3Ho7XpaeRPiHNTrZdcQhyoaZgTEG+AbRZ5g1eaqJUV7g79p5aWFY0g8aqR8j79 KTua+3QqM2wNsW8rXWpTB2murE8sHrvOSk4V/5r+kfeQ1hzNkXbX7YhM9RVGhG/oxC 54J7wiApe9Xt7DEeoDxAis7a8V1QOHbBBaQzcKkE= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 28 May 2020 00:12:34 +0300 From: p.luzanov@postgrespro.ru To: "David G. Johnston" Cc: pluzanov@postgrespro.ru, pgsql-docs@lists.postgresql.org Subject: Re: max_wal_size In-Reply-To: References: <159057129673.7025.17016799863173731176@wrigleys.postgresql.org> <92491c6d07a3216ef2caee8ef55c02b5@postgrespro.ru> User-Agent: Roundcube Webmail/1.4.0 Message-ID: <8aac88e2a22cd84e50ee1a2bcf3da9b7@postgrespro.ru> X-Sender: p.luzanov@postgrespro.ru List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David, > For 0.5 you get 2/3rds consumption: ( n / ( 1 + 0.5 ) ) = n * 2/3 Exactly, for checkpoint_completion_target=0.5 the distance between checkpoints is 2/3 of max_wal_size. But back to the documentation of max_wal_size. "Maximum size to let the WAL grow to between automatic WAL checkpoints." For me it looks like the distance between checkpoints is equal to max_wal_size. English is not my native language, so I admit that I misunderstand the exact meaning of this phrase. P.S. Sorry to post this topic twice. https://www.postgresql.org/message-id/97af9ef7-d7d9-cfd0-a280-d400cf05c68a%40postgrespro.ru ----- Pavel Luzanov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company