Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id DCB7F9FB9EB for ; Thu, 11 Oct 2007 11:47:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 32534-04 for ; Thu, 11 Oct 2007 11:47:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id F03C49FB9ED for ; Thu, 11 Oct 2007 11:47:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l9BElN5Z013580; Thu, 11 Oct 2007 10:47:23 -0400 (EDT) To: Thomas Karcher cc: pgsql-admin@postgresql.org Subject: Re: Consistent PITR backup In-reply-to: <1192113425.9842.2.camel@localhost.localdomain> References: <20071011093908.GA7988@arche.mine.nu> <13019.1192112569@sss.pgh.pa.us> <1192113425.9842.2.camel@localhost.localdomain> Comments: In-reply-to Thomas Karcher message dated "Thu, 11 Oct 2007 16:37:05 +0200" Date: Thu, 11 Oct 2007 10:47:23 -0400 Message-ID: <13579.1192114043@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/93 X-Sequence-Number: 27007 Thomas Karcher writes: >> I believe the intended way to do this is to look at pg_stop_backup's >> return value to determine the last segment you need to archive. > Thank you - I saw that, but I didn't have a clue about how to determine > the WAL filename in which this segment is to be found ... Well, the transformation is pretty trivial, but you can use pg_xlogfile_name() to avoid getting your hands dirty. regards, tom lane