From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Cc: Colin Wilson <cwilson@blackducksoftware.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Warm Standby looking for already applied log files
Date: Fri, 28 Jan 2011 10:01:59 -0600
Message-ID: <4D4294170200002500039F5A@gw.wicourts.gov> (raw)
In-Reply-To: <m2sjwdkoy7.fsf@2ndQuadrant.fr>
References: <A51C2757-6A50-4E0A-B1C9-6E07CD4393A9@blackducksoftware.com>
<4D3D5C520200002500039B11@gw.wicourts.gov>
<4D3D5C520200002500039B11@gw.wicourts.gov>
<m2sjwdkoy7.fsf@2ndQuadrant.fr>
Dimitri Fontaine <dimitri@2ndQuadrant.fr> wrote:
> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
>> that script to not delete. Personally, I like to keep the last
>> two base backups and all the WAL files needed to restore from the
>> earlier of those forward. We have cleanup script that deletes
>> the oldest backup and WAL files only needed for recovery from it
>> when we receive a new one.
>
> PostgreSQL 9.0 now ships with such a script per default:
>
>
http://www.postgresql.org/docs/9.0/interactive/pgarchivecleanup.html
Thanks for pointing that out. Next time we touch the scripts, I'll
see about using this instead of the bash script we call to do the
equivalent.
I don't suppose there's something which looks *into* a backup file
and deletes all WAL files not needed to restore the related base
backup? That would eliminate an even *uglier* bash script here.
-Kevin
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, dimitri@2ndQuadrant.fr, cwilson@blackducksoftware.com
Subject: Re: Warm Standby looking for already applied log files
In-Reply-To: <4D4294170200002500039F5A@gw.wicourts.gov>
References: <A51C2757-6A50-4E0A-B1C9-6E07CD4393A9@blackducksoftware.com> <4D3D5C520200002500039B11@gw.wicourts.gov> <m2sjwdkoy7.fsf@2ndQuadrant.fr> <4D4294170200002500039F5A@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