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 1mNrEs-00036r-8c for pgsql-general@arkaria.postgresql.org; Wed, 08 Sep 2021 06:39: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 1mNrEq-0008BX-Ei for pgsql-general@arkaria.postgresql.org; Wed, 08 Sep 2021 06:39:16 +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 1mNrEq-0008BP-3w for pgsql-general@lists.postgresql.org; Wed, 08 Sep 2021 06:39:16 +0000 Received: from mail1.dalibo.net ([212.83.143.11] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNrEm-0004D4-Eo for pgsql-general@postgresql.org; Wed, 08 Sep 2021 06:39:14 +0000 Received: from [127.0.0.1] (larco.ioguix.net [78.202.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 00E0A2002B; Wed, 8 Sep 2021 08:39:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1631083148; bh=uwRwnX28Hhgr6JwVqPH27EYWfD25gPU7RUvqmea7nng=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=rAV9KXVTm4zwKcYxHJ6pvwrdW1PqhRu1+77TsLqhFqo0dPs4hUEb0Satr1UD5Vnn2 iB8IKFT2lipq/3XbrKpwl8fqaSA0YiFFvlVXg2M2iQbHdWrs9USwTyRHngYOT4USEv NbWsayfqz+PSd5V9iDsgasz0tuMycSlsTSjviDBE= Date: Wed, 08 Sep 2021 08:39:03 +0200 From: Jehan-Guillaume de Rorthais To: Ninad Shah CC: Laurenz Albe , basti , pgsql-general Subject: Re: prevent WAL replication to fill filesystem In-Reply-To: References: <7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at> <20210831113752.2be1ed44@firost> Message-ID: <80F8268C-59FD-4C83-8DFD-36281AD912B6@dalibo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Le 8 septembre 2021 06:07:15 GMT+02:00, Ninad Shah a =C3=A9crit=C2=A0: >These suggestions are appropriate=2E However, if you are ready to lose yo= ur >replica to keep production running, there are a couple of methods=2E > >1) Set archive_command to "/bin/true" >2) rename =2Eready files in archive_status to =2Edone=2E You do not need to rename files in archive_status, especially after settin= g /bin/true=2E The normal production, if running, will soon enough clean ev= erything, quickly=2E A good advice is to never do writes in pg_wal yoursef (mv, rm, edit, etc)= =2E