Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qT1E4-0087In-Aa for pgsql-admin@arkaria.postgresql.org; Mon, 07 Aug 2023 14:28:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qT1E2-00A0uA-Jt for pgsql-admin@arkaria.postgresql.org; Mon, 07 Aug 2023 14:28:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qT1E1-00A0u2-Ux for pgsql-admin@lists.postgresql.org; Mon, 07 Aug 2023 14:28:50 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qT1Dx-0016hP-U4 for pgsql-admin@lists.postgresql.org; Mon, 07 Aug 2023 14:28:49 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id B20535F7B7; Mon, 7 Aug 2023 10:28:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowman.net; s=dkim; t=1691418519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=mfFbI6h29tcC2wltCRVNR2oSw0kC4l19PjvMzgUsi/M=; b=jGWl3MQ4nn9n5JcXhK2QmqLYW69nk4V+MB33DgLqAFZpP3ykASWDSETzjrGqrUynKGvkN0 f9NYFJxsouJ34XT7Z+KcjpGDiaVUnC2VsbkwAhE1tJhJmQk4ICdwRudlfPFTDw7ABpVYv2 l+xSDrL3bGySsttbmytiGSmZTAm2mU0= Date: Mon, 7 Aug 2023 10:28:39 -0400 From: Stephen Frost To: Jeff Janes , Rajesh Kumar , Ron Cc: pgsql-admin@lists.postgresql.org Subject: Re: Archive cleanup Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PxmfAbmw3uqkKa/E" Content-Disposition: inline In-Reply-To: <11b4adf7-9b46-a3b5-e18f-2cc38adc6116@gmail.com> User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PxmfAbmw3uqkKa/E Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Jeff Janes (jeff.janes@gmail.com) wrote: > On Fri, Aug 4, 2023 at 5:04=E2=80=AFAM Rajesh Kumar > wrote: > > Anybody let me know how to automate the archive clean up in postgres. >=20 > If the only reason you have an archive is so a standby can get the WAL, > then you can just use a slot instead. If you don't have an archive, you > don't need to clean it up. No, archives are critical for online backups and PITR, not just so that you can make sure the standby is able to catch up (but that's a very nice additional bit that archives provide). * Rajesh Kumar (rajeshkumar.dba09@gmail.com) wrote: > Archive is must for point in time recovery right? Yes. * Ron (ronljohnsonjr@gmail.com) wrote: > Use PgBackRest, and make your life a *lot* easier. Agreed. Thanks, Stephen --PxmfAbmw3uqkKa/E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmTQ/5UACgkQ7WyKOINH ZFURdA/+IRsBFow670Y7MgUHmKGZrBpHRaDk7qEsrmTAf4GFMBlKif44Yo9JpRr8 z+2Y3B6i2ea+0UrQ8Bxrw5ZP+AVqT3wCa8Jg52U0+F8LatX81Q99AblfddMh5nqq 4zfdxinOxZJyQ1qRhufSWiUcxLiNnVdsKAgQYdFBuwyqdmSvZP/Zcn7bF2cg4PCp DIC0PtfAbR1aYnnJZVgj3bq4V8Jt9joz2gHDxIx5Gn+zwikvVRus90XMFFzloXbF MjsC8mIGe4PtPyvHZ6HGuNE6FoTYGK+1EipGgs7x7fpXjPplalszqH+fZhnxRnRg qPMsxIbzdeWo64z8Dx3ZVV+i5MqzgV/7nvYNF22bIBZiu866qAmG22LykU8Yo701 NsgF9Ru/5Rr/TvaC/dD8EwVbK+7kkJNFxI2zX6dMhXE/tTZMytkMhA7qoVo2RfBl FMpWCzz89gTZpa6oOfL3xG6mWC8TKfRerVrJeaBKZtNH0otaUO4MrQPayAWWo18O wMS+Ed8NAjSgarU11H1e02YNiMWZkEbf7fML2CxuLx3/BCM7FrfxbYQ8jiaKfJ/s 6h0mU3RIXroO2Ayt4TMz4J+tVMkIWwnDiEfqhmdeUDIKFT5/kFvNcp04+o0/FCPn fbG3pql5gxJRoyY2N/G/Djpn8uOdUkeyzut0hZmXpvu+2Qo/R84= =kZ9k -----END PGP SIGNATURE----- --PxmfAbmw3uqkKa/E--