pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Checkpoint Location Format
Date: Wed, 15 Nov 2006 16:08:48 +0000
Message-ID: <455B3B90.1030005@mailnetwork.co.uk> (raw)
In-Reply-To: <1163542492.27956.116.camel@silverbirch.site>
References: <45508655.4040708@mailnetwork.co.uk>
	<1163542492.27956.116.camel@silverbirch.site>

Yup that sounds useful - would this be another column added to the 
pg_stop_backup called "wal_filename" or similar?
My script uses this name to find the date/time of the current ".backup" 
file and remove any files earlier than it (except obviously the one 
listed in the START WAL LOCATION).
I've yet to run a restore test, but the backup and automatic archive 
clearout is working nicely.

I'm not too worried about the SQL function to find the current WAL file, 
although I can see this could be useful too.

Thanks,

Andy.

Simon Riggs wrote:
> On Tue, 2006-11-07 at 13:12 +0000, Andy Shellam (Mailing Lists) wrote:
>
>   
>> I'm writing an automated file-system level backup application for use 
>> with WAL archiving, that will issue the pg_start_backup call, tar and 
>> gzip the cluster data directory, issue the pg_stop_backup call, and 
>> remove all previous un-needed WAL files from the archive.
>>     
>
> Is this any help?
>
> http://archives.postgresql.org/pgsql-patches/2006-05/msg00229.php
>
> If so, I'll see about updating it so it can get backpatched to 8.0 and
> 8.1 also.
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834




view thread (5+ messages)

Message-ID: <455B3B90.1030005@mailnetwork.co.uk>
Permalink:  ../455B3B90.1030005@mailnetwork.co.uk/
Also on:    postgresql.org/message-id/455B3B90.1030005@mailnetwork.co.uk

 · 

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: andy.shellam-lists@mailnetwork.co.uk, simon@2ndquadrant.com
  Subject: Re: Checkpoint Location Format
  In-Reply-To: <455B3B90.1030005@mailnetwork.co.uk>
  References: <45508655.4040708@mailnetwork.co.uk> <1163542492.27956.116.camel@silverbirch.site> <455B3B90.1030005@mailnetwork.co.uk>

* 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