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 1kmGxM-0004Ya-0O for pgsql-admin@arkaria.postgresql.org; Mon, 07 Dec 2020 13:53:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kmGxK-0007QO-ID for pgsql-admin@arkaria.postgresql.org; Mon, 07 Dec 2020 13:53:34 +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 1kmGxK-0007QH-BB for pgsql-admin@lists.postgresql.org; Mon, 07 Dec 2020 13:53:34 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmGxI-0006Ph-AP for pgsql-admin@lists.postgresql.org; Mon, 07 Dec 2020 13:53:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 7E4FFA155B; Mon, 7 Dec 2020 13:53:29 +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 s-dmGdN5xO6E; Mon, 7 Dec 2020 13:53:29 +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 524EBA1558; Mon, 7 Dec 2020 13:53:25 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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: Date: Mon, 7 Dec 2020 06:53:25 -0700 Cc: Ian Lawrence Barwick , Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <5AAB0FED-45AA-45F6-AFB5-A65A36275492@elevated-dev.com> References: To: Yambu 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 6:47 AM, Yambu wrote: >=20 > Does the command ,archive_cleanup_command, delete the files from the = master server? i understand this config is done on the slave server The point of the archive command is to copy to the replica. If you're = archiving on master, then using some script to copy to replica, then = postgres has no way to know when it is safe to delete WAL files.