Re: Archive cleanup - Mailing list pgsql-admin

From Jeff Janes
Subject Re: Archive cleanup
Date
Msg-id CAMkU=1wj6bujF3JEh4tYjZ7aavwah_4mkckJyn8FcmV04w=wVA@mail.gmail.com
Whole thread Raw
In response to Archive cleanup  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Responses Re: Archive cleanup  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Re: Archive cleanup  (Stephen Frost <sfrost@snowman.net>)
List pgsql-admin
On Fri, Aug 4, 2023 at 5:04 AM Rajesh Kumar <rajeshkumar.dba09@gmail.com> wrote:
Hi friends,

Anybody let me know how to automate the archive clean up in postgres.

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.

If you are using the archive for something else, you would need to tell us what that is.  Otherwise, you are just asking "how long is a piece of string"?

Cheers,

Jeff

pgsql-admin by date:

Previous
From: Rajesh Kumar
Date:
Subject: Archive cleanup
Next
From: Jeff Janes
Date:
Subject: Re: analyze foreign tables