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 1oWaKk-0003WF-4j for pgsql-admin@arkaria.postgresql.org; Fri, 09 Sep 2022 09:29:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWaKj-0003h7-0u for pgsql-admin@arkaria.postgresql.org; Fri, 09 Sep 2022 09:29:57 +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 1oWaKi-0003gv-Mh for pgsql-admin@lists.postgresql.org; Fri, 09 Sep 2022 09:29:56 +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 1oWaKg-0006lS-Cw for pgsql-admin@lists.postgresql.org; Fri, 09 Sep 2022 09:29:56 +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=bBRZlVN1Kpzcb/8hHCuvDKka6bzZzL8La8aOkViAMTI=; b=gGHEZWKUc/NNkEDV7pRxiC7bPx oPcv/qfvM+ckop49ihwn+pAcNEdLfb078FN2IhMRh2nsnKLWXDbLsg5kK/eoD5iz1/q2blXjjWRgI 9NmWGLChW6eEtR1cCZydhxGpNQmaE2ZfTynrfmE4tZt/zf8REk9jMG8gi+VFZpSeEoiU=; Received: from vas by admin.sibptus.ru with local (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oWaKf-0004p3-Nl for pgsql-admin@lists.postgresql.org; Fri, 09 Sep 2022 09:29:53 +0000 Date: Fri, 9 Sep 2022 09:29:53 +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 Ron wrote: > On 9/9/22 02:25, Victor Sudakov wrote: > > 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. > > How are you going to prevent the disk from filling up? Someone will eventually set archive_command to something useful before the disk is full. Or Postgress will stop. It does not matter for the current question. I just want to make sure that unarchived WAL files are never ever deleted and there is no limit on the number or size of unarchived WAL files. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet