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 1kmHF3-0005IL-RT for pgsql-admin@arkaria.postgresql.org; Mon, 07 Dec 2020 14:11:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kmHF2-0003yP-RH for pgsql-admin@arkaria.postgresql.org; Mon, 07 Dec 2020 14:11:52 +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 1kmHF2-0003yI-Jo for pgsql-admin@lists.postgresql.org; Mon, 07 Dec 2020 14:11:52 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmHEz-0004J0-DO for pgsql-admin@lists.postgresql.org; Mon, 07 Dec 2020 14:11:51 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 50A4BA13F8; Mon, 7 Dec 2020 14:11:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pQcW9el1X4BZ; Mon, 7 Dec 2020 14:11:46 +0000 (UTC) Received: from shr-macbook-pro.local (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 5E395A0A0F; Mon, 7 Dec 2020 14:11:39 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Archive directory From: Scott Ribe In-Reply-To: <92588443-EB0E-412B-B768-301603D21CCA@gmail.com> Date: Mon, 7 Dec 2020 07:11:38 -0700 Cc: Yambu , Ian Lawrence Barwick , Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <9076CFB7-5E9B-4458-AD4F-BC94AE3B6A0F@elevated-dev.com> References: <5AAB0FED-45AA-45F6-AFB5-A65A36275492@elevated-dev.com> <92588443-EB0E-412B-B768-301603D21CCA@gmail.com> To: =?utf-8?Q?Paul_F=C3=B6rster?= X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Dec 7, 2020, at 7:02 AM, Paul F=C3=B6rster = wrote: >=20 > in my understanding, this is only true if you don't use replication = slots. If you use replication slots then the primary should know when a = WAL file is no longer needed and abandoned or ready to be recycled. I don't think OP is talking about the WAL files PG is managing; I think = he's talking about WAL files copied into an archive directory.=