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 1mL0DQ-0006Om-6s for pgsql-general@arkaria.postgresql.org; Tue, 31 Aug 2021 09:38:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mL0DP-0006xo-4S for pgsql-general@arkaria.postgresql.org; Tue, 31 Aug 2021 09:37:59 +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 1mL0DO-0006xg-Pj for pgsql-general@lists.postgresql.org; Tue, 31 Aug 2021 09:37:58 +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 1mL0DM-0001Ng-5I for pgsql-general@postgresql.org; Tue, 31 Aug 2021 09:37:57 +0000 Received: from firost (larco.ioguix.net [78.202.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 2C2B2205E9; Tue, 31 Aug 2021 11:37:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1630402673; bh=HAg/rKlFdbtj43vXr8wunVsIba3x5E4YPE0Q4iwDsK0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IUBP7VmKf+j8VODQ75T5DJxqC9WPn3qKNooQrbfzFo7zbciSUs12K0So2V/la4+hb iKGSqNHjNU+1uikTjyLGUt4ooPxqu0Ueh5wxgV08zW/EUHYsVZ8pCtmLrLDk5QayvA zjIJecCz6SGxidnszZkN3R9z5aDaoSbYT1L74YyA= Date: Tue, 31 Aug 2021 11:37:52 +0200 From: Jehan-Guillaume de Rorthais To: Laurenz Albe Cc: basti , pgsql-general Subject: Re: prevent WAL replication to fill filesystem Message-ID: <20210831113752.2be1ed44@firost> In-Reply-To: <7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at> References: <7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at> Organization: Dalibo 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 On Tue, 31 Aug 2021 10:53:45 +0200 Laurenz Albe wrote: > On Tue, 2021-08-31 at 10:36 +0200, basti wrote: > > =C2=A0have a old PG 9.6 with WAL replication. > > for some reason the rsync was failed and the filesystem was filled by > > pg_xlog files. > > As result PG stops working. > >=20 > > Is there a way to prevent WAL replication to fill filesystem by xlog > > files in case of failure? =20 No.=20 You have to size your partition big enough to handle few days of normal WAL production, monitor the archiving success and react quickly to fix thin= gs when it fails. > Upgrade to v13 and set "max_slot_wal_keep_size". How this would prevent the failure if $OP doesn't (want to) use slots ? He speaks about rsync, so it might be purely archiving error, not streaming. Regards,