Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 82A669F970A for ; Fri, 2 Nov 2007 02:38:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 56278-02 for ; Fri, 2 Nov 2007 02:38:50 -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 D5FC59F9460 for ; Fri, 2 Nov 2007 02:38:51 -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 lA25cm1o022326; Fri, 2 Nov 2007 01:38:48 -0400 (EDT) To: Kevin Kempter cc: pgsql-admin@postgresql.org Subject: Re: Understanding wal segments In-reply-to: <200711012239.07980.kevin@kevinkempterllc.com> References: <200711012155.16409.kevin@kevinkempterllc.com> <21716.1193978282@sss.pgh.pa.us> <200711012239.07980.kevin@kevinkempterllc.com> Comments: In-reply-to Kevin Kempter message dated "Thu, 01 Nov 2007 22:39:07 -0600" Date: Fri, 02 Nov 2007 01:38:48 -0400 Message-ID: <22325.1193981928@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/14 X-Sequence-Number: 27257 Kevin Kempter writes: > Also I suspect after each filesystem backup I should remove the older > archived segments since the file system backup makes them > irrelevant. Is this accurate? Depends what your goals are. If you only want to be able to recover the latest database state then you only need archived WAL segments back to the start of the latest filesystem backup. If you are interested in the "PITR" aspect of it --- being able to revert back to last Tuesday before some bad guy injected bad data, say --- then you'll want to keep older filesystem backups too, and a continuous string of archived WAL files covering the period of interest. regards, tom lane