X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 06DEE8B9EAE for ; Thu, 17 Feb 2005 15:33:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39782-01 for ; Thu, 17 Feb 2005 15:33:29 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 07E3C8B9E95 for ; Thu, 17 Feb 2005 15:33:32 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j1HFXW7k007184; Thu, 17 Feb 2005 10:33:33 -0500 (EST) To: thomas.revell@powerconv.alstom.com Cc: pgsql-admin@postgresql.org Subject: Re: Determining current WAL In-reply-to: References: Comments: In-reply-to thomas.revell@powerconv.alstom.com message dated "Thu, 17 Feb 2005 10:24:30 +0000" Date: Thu, 17 Feb 2005 10:33:32 -0500 Message-ID: <7183.1108654412@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/155 X-Sequence-Number: 16323 thomas.revell@powerconv.alstom.com writes: > I'm currently looking at using WAL / PITR backups for a database, and I > need to keep the backups as up to date as possible. As such, keeping a > copy of the current WAL file, as suggested in the manual, would seem to be > a very good idea. I'm slightly confused, though, about which file is the > current. I had assumed that it would always be the highest numbered, No. Go with the most-recently-modified. Segment files are normally created (or renamed into place) in advance of being needed. There should probably be a cleaner/more reliable way of identifying the active file ... regards, tom lane