pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jim@nasby.net>
To: Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: Checkpoint Location Format
Date: Thu, 9 Nov 2006 01:02:09 -0600
Message-ID: <20061109070209.GE90133@nasby.net> (raw)
In-Reply-To: <45508655.4040708@mailnetwork.co.uk>
References: <45508655.4040708@mailnetwork.co.uk>

On Tue, Nov 07, 2006 at 01:12:53PM +0000, Andy Shellam (Mailing Lists) wrote:
> Hi,
> 
> 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.
> 
> I need to write a regular expression that will search for the WAL 
> filename and checkpoint location from the backup_label file, and just 
> want to clarify that the checkpoint location will always be of the 
> format: X/XXXXXX - where X is one of 0-9, A-F?
> 
> And then the WAL .backup file that is generated in the archive, has a 
> filename of the form:
> 
> <WAL_FILE>.00XXXXXX.backup
> 
> where <WAL_FILE> is the name of the "STARTING WAL LOCATION" directive in 
> the backup_label file, and XXXXXX is the last 6 digits of the checkpoint 
> (after the / )?

I don't know the answer, but since no one's replied I suggest looking in
the code. Looking at the source of pg_start_backup would probably be a
good start, though I'm guessing the real answer is somewhere in the
backend.
-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)



view thread (5+ messages)  latest in thread

Message-ID: <20061109070209.GE90133@nasby.net>
Permalink:  ../20061109070209.GE90133@nasby.net/
Also on:    postgresql.org/message-id/20061109070209.GE90133@nasby.net

 · 

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: jim@nasby.net, andy.shellam-lists@mailnetwork.co.uk
  Subject: Re: Checkpoint Location Format
  In-Reply-To: <20061109070209.GE90133@nasby.net>
  References: <45508655.4040708@mailnetwork.co.uk> <20061109070209.GE90133@nasby.net>

* 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