Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 196AB632D92 for ; Mon, 19 Apr 2010 13:41:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 10086-01 for ; Mon, 19 Apr 2010 16:41:26 +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 1B75F632B9E for ; Mon, 19 Apr 2010 13:41:26 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 19 Apr 2010 11:41:26 -0500 Message-Id: <4BCC415D0200002500030A6B@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 19 Apr 2010 11:41:17 -0500 From: "Kevin Grittner" To: "Frederiko Costa" , 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> In-Reply-To: <4BCC7804.9070604@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=-2.069 tagged_above=-10 required=5 tests=AWL=-0.159, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/259 X-Sequence-Number: 34353 Frederiko Costa wrote: > I noticed the new logs files don't get copied to the directory > specified on the archive_command. It's only copied when I do the > pg_start_backup()/pg_stop_backup() base backup. Is this behaviour > only achieved if I set archive_timeout? I did not want to do that, > because I thought as soon as the 16MB WAL segment file got created > it would be copied to the exported directory. Have you actually been filling up any 16MB WAL file segments? How have you determined that? What happens when you run (as a database superuser) this command?: SELECT pg_switch_xlog(); If the reason you don't want to set archive_timeout is that you don't want 16MB files piling up when there is little or no activity, you might want to consider using pglesslog or pg_clearxlogtail. These can eliminate nearly all the cost of the more frequent logs. -Kevin