pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: PG Admin <pgsql-admin@postgresql.org>
To: A J <s5aly@yahoo.com>
Subject: Re: Cleanup of same archive used by multiple standbys
Date: Wed, 10 Aug 2011 11:53:13 -0500
Message-ID: <4E427129020000250003FD43@gw.wicourts.gov> (raw)
In-Reply-To: <1312994485.73719.YahooMailNeo@web120017.mail.ne1.yahoo.com>
References: <1312994485.73719.YahooMailNeo@web120017.mail.ne1.yahoo.com>

A J <s5aly@yahoo.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



view thread (4+ messages)  latest in thread

Message-ID: <4E427129020000250003FD43@gw.wicourts.gov>
Permalink:  ../4E427129020000250003FD43@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4E427129020000250003FD43@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, s5aly@yahoo.com
  Subject: Re: Cleanup of same archive used by multiple standbys
  In-Reply-To: <4E427129020000250003FD43@gw.wicourts.gov>
  References: <1312994485.73719.YahooMailNeo@web120017.mail.ne1.yahoo.com> <4E427129020000250003FD43@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox