Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 213086325C4 for ; Mon, 19 Apr 2010 14:26:40 -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 42513-04 for ; Mon, 19 Apr 2010 17:26:27 +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 C0CED632DF7 for ; Mon, 19 Apr 2010 14:26:28 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 19 Apr 2010 12:26:27 -0500 Message-Id: <4BCC4BEB0200002500030A75@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Mon, 19 Apr 2010 12:26:19 -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> <4BCC415D0200002500030A6B@gw.wicourts.gov> <4BCC8E76.2040105@gmail.com> In-Reply-To: <4BCC8E76.2040105@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.068 tagged_above=-10 required=5 tests=AWL=-0.158, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/261 X-Sequence-Number: 34355 Frederiko Costa wrote: > I have seen new 16 MB segments files created in pg_xlog directory > as time goes on. Honestly, I did not understand why it got > created, because I was running it on a VM and there was no > activity. I got several new segments. > > If I run the command you asked, this is the output. Neither > segment is copied, nor a new segment file gets created: > > select pg_switch_xlog(); > pg_switch_xlog > ---------------- > 0/81000088 > (1 row) What version of PostgreSQL is this? What do you see if you run?: show archive_command; show archive_mode; show archive_timeout; Check your log file from the time you ran pg_switch_xlog to look for any messages which might give a clue to what's happening. -Kevin