Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B5AE09FA23F for ; Tue, 7 Nov 2006 10:22:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 76981-07 for ; Tue, 7 Nov 2006 10:22:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from perth.mailnetwork.co.uk (perth.mailnetwork.co.uk [80.175.28.46]) by postgresql.org (Postfix) with ESMTP id F38709FA22A for ; Tue, 7 Nov 2006 10:22:16 -0400 (AST) Received: from [213.146.143.243] (port=38029 helo=[172.16.208.165]) by perth.mailnetwork.co.uk with esmtpa (Exim 4.63) (envelope-from ) id 1GhRqD-0000Wg-NI for pgsql-admin@postgresql.org; Tue, 07 Nov 2006 14:22:17 +0000 Message-ID: <45509711.8080807@mailnetwork.co.uk> Date: Tue, 07 Nov 2006 14:24:17 +0000 From: "Andy Shellam (Mailing Lists)" User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: [Fwd: Checkpoint Location Format] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/47 X-Sequence-Number: 23574 Further to the below e-mail, I've come across a slight problem. The starting checkpoint location in a backup I've just taken is "0/22A3190" (note: 7 digits after the /, not 6 as I first thought.) However the .backup file is called .002A3190 (ie. it only takes the right-most 6 digits). Can someone confirm this is the correct case? Thanks, Andy. -------- Original Message -------- Subject: Checkpoint Location Format Date: Tue, 07 Nov 2006 13:12:53 +0000 From: Andy Shellam (Mailing Lists) To: pgsql-admin@postgresql.org 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: .00XXXXXX.backup where 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 / )? Thanks, Andy.