Обсуждение: Archive cleanup

Поиск
Список
Период
Сортировка

Archive cleanup

От
Rajesh Kumar
Дата:
Hi friends,

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

Regards,
Kumar

Re: Archive cleanup

От
Jeff Janes
Дата:
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

Re: Archive cleanup

От
Rajesh Kumar
Дата:
Archive is must for point in time recovery right?

On Fri, 4 Aug 2023 at 06:48, Jeff Janes <jeff.janes@gmail.com> wrote:
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

Re: Archive cleanup

От
Ron
Дата:
Use PgBackRest, and make your life a lot easier.

On 8/5/23 19:36, Rajesh Kumar wrote:
Archive is must for point in time recovery right?

On Fri, 4 Aug 2023 at 06:48, Jeff Janes <jeff.janes@gmail.com> wrote:
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

--
Born in Arizona, moved to Babylonia.

Re: Archive cleanup

От
Stephen Frost
Дата:
Greetings,

* Jeff Janes (jeff.janes@gmail.com) wrote:
> On Fri, Aug 4, 2023 at 5:04 AM Rajesh Kumar <rajeshkumar.dba09@gmail.com>
> wrote:
> > 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.

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

Вложения