Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 39A139FA342 for ; Tue, 7 Nov 2006 11:02:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 24269-01 for ; Tue, 7 Nov 2006 15:02:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3432E9FA23F for ; Tue, 7 Nov 2006 11:02:42 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kA7F2ej6009900; Tue, 7 Nov 2006 10:02:40 -0500 (EST) To: "Andy Shellam (Mailing Lists)" cc: pgsql-admin@postgresql.org Subject: Re: [Fwd: Checkpoint Location Format] In-reply-to: <45509711.8080807@mailnetwork.co.uk> References: <45509711.8080807@mailnetwork.co.uk> Comments: In-reply-to "Andy Shellam (Mailing Lists)" message dated "Tue, 07 Nov 2006 14:24:17 +0000" Date: Tue, 07 Nov 2006 10:02:39 -0500 Message-ID: <9899.1162911759@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/48 X-Sequence-Number: 23575 "Andy Shellam (Mailing Lists)" writes: > 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). Yeah, the second part of the .backup file name is the offset within the corresponding WAL file, which for the standard file size of 16M can only range up to 6 hex digits. The higher-order bits of the second word of the checkpoint location go into the last part of the WAL file name. That is, checkpoint location xxxxxxxx/yyzzzzzz should be associated with a backup file named like ttttttttxxxxxxxx000000yy.00zzzzzz.backup. (I think ... haven't had any caffeine yet this morning ...) regards, tom lane