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 1oWYO6-0001Qd-Ph for pgsql-admin@arkaria.postgresql.org; Fri, 09 Sep 2022 07:25:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWYO5-0004pd-Lw for pgsql-admin@arkaria.postgresql.org; Fri, 09 Sep 2022 07:25:17 +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 1oWYO5-0004pT-BO for pgsql-admin@lists.postgresql.org; Fri, 09 Sep 2022 07:25:17 +0000 Received: from admin.sibptus.ru ([2001:19f0:5001:21dc::10]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWYO1-0005ao-6G for pgsql-admin@lists.postgresql.org; Fri, 09 Sep 2022 07:25:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=5gb2wxicxucMPo18Ti1yPtXHHElDLbO5dSAh0LS5IJk=; b=A2syXyucMYIsYNKqjqMyeKQitE SD5ymooCqYnpHXi8wvaAHtu0ohvlzPTmlsCgajY6paz/d7YXvPMtF/guGCiWT352NQmuCVO7USmtW eKgvWGRcgzLvwrHVqMWkwGISNf/lX73UHJwEFtnC/Q3VxP9If3iMpe7n3qG4/jttcZQg=; Received: from vas by admin.sibptus.ru with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oWYNx-0003CY-Nq for pgsql-admin@lists.postgresql.org; Fri, 09 Sep 2022 07:25:09 +0000 Date: Fri, 9 Sep 2022 07:25:09 +0000 From: Victor Sudakov To: pgsql-admin@lists.postgresql.org Subject: Re: WAL storage when archive_command='' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Holger Jakobs wrote: > > Am 09.09.22 um 06:56 schrieb Victor Sudakov: > > Dear Colleagues, > > > > With archive_mode='on' and archive_command='', is there a limit on WAL > > files accumulation or will they be kept infinitely until the disk is > > full? > > > > Actually I'd prefer them to be kept infinitely, just want to make sure > > it's really the case. > > > There is no limit. The disk will run full. That's actually great that unarchived WAL files will never get deleted or reused. Thank you for confirming this. I was pretty sure about the situation when the archive_command returns a non-zero status, but not so sure about an empty archive_command. > > That's why disk space is the #1 priority in monitoring a PostgreSQL > instance. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet