Re: Cleanup of same archive used by multiple standbys

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "PG Admin" <pgsql-admin(at)postgresql(dot)org>,"A J" <s5aly(at)yahoo(dot)com>
Subject: Re: Cleanup of same archive used by multiple standbys
Date: 2011-08-10 16:53:13
Message-ID: 4E427129020000250003FD43@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

A J <s5aly(at)yahoo(dot)com> wrote:

> What is the suggested technique for cleaning up an archive
> location shared by multiple standbys. Looks like pg_archivecleanup
> cannot be used as %r refers to last restartpoint of only a single
> standby server. Do I need to create a custom script that somehow
> determines the latest common restartpoint of ALL the standbys and
> then manually run pg_archivecleanup with that value ?

I seem to remember that in a previous discussion of this the best
idea seemed to be to create a hard link to the file for each
standby, such that when the last standby cleans up the file, it is
actually deleted.

-Kevin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-08-10 17:00:07 Re: Cleanup of same archive used by multiple standbys
Previous Message A J 2011-08-10 16:53:04 Re: Cleanup of same archive used by multiple standbys