Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 601736331C8 for ; Mon, 19 Apr 2010 15:42:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60964-10 for ; Mon, 19 Apr 2010 18:41:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 79B3563306D for ; Mon, 19 Apr 2010 15:41:54 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 19 Apr 2010 13:41:53 -0500 Message-Id: <4BCC5D970200002500030A80@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 19 Apr 2010 13:41:43 -0500 From: "Kevin Grittner" To: "Frederiko Costa" Cc: Subject: Re: archived WALL files question References: <7965A9DCF12CC14984420BCC37B1608F25AC0B99AD@Elzar.grant.co.uk> <4BC6F21D0200002500030956@gw.wicourts.gov> <7965A9DCF12CC14984420BCC37B1608F25AC0B99E4@Elzar.grant.co.uk> <4BCC7804.9070604@gmail.com> <4BCC415D0200002500030A6B@gw.wicourts.gov> <4BCC8E76.2040105@gmail.com> <4BCC4BEB0200002500030A75@gw.wicourts.gov> <4BCC97BF.8090501@gmail.com> In-Reply-To: <4BCC97BF.8090501@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/263 X-Sequence-Number: 34357 Frederiko Costa wrote: > log files are being copied directly to the /mnt/data dir. > However, the same segments are not in the pg_xlog > dir. Is this a default behaviour? Yes, the pg_xlog directory tries to keep a set of files ready to receive WAL, and to hold it until the next checkpoint completes, while the archive directory holds WAL files which have filled or reached the archive_timeout limit. There can be some overlap, but basically you can view the archive as "past" and pg_xlog as "future", with some potential overlap in "the present". > Must I set archive_timeout? No, but once a database write occurs, you don't have it backed up until the WAL file is written to the archive directory. archive_timeout is for those who want some wall-clock bounds on how much they can lose in, say, a drive failure. If the database can be reloaded from some other source, or the data has no real value, it may not pay to use this feature. -Kevin