Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A0EE89F9F7B for ; Fri, 22 Dec 2006 13:40:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 19946-02 for ; Fri, 22 Dec 2006 13:39:55 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by postgresql.org (Postfix) with ESMTP id A190E9F9DAD for ; Fri, 22 Dec 2006 13:39:55 -0400 (AST) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 2647259D82 for ; Fri, 22 Dec 2006 12:39:48 -0500 (EST) Received: from web1.messagingengine.com ([10.202.2.210]) by out1.internal (MEProxy); Fri, 22 Dec 2006 12:39:48 -0500 Received: by web1.messagingengine.com (Postfix, from userid 99) id 0EBFB37CE5; Fri, 22 Dec 2006 12:39:48 -0500 (EST) Message-Id: <1166809188.18931.281714145@webmail.messagingengine.com> X-Sasl-Enc: 12nfjxZDdITEuaMJzHdbadlCL9nCv9n/dYfIE7uiYeq4 1166809188 From: "Jeremy Haile" To: pgsql-performance@postgresql.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <1166803606.2828.281701761@webmail.messagingengine.com> <1166806378.10592.281708161@webmail.messagingengine.com> <1166806963.3783.203.camel@silverbirch.site> <1166808625.17094.281711491@webmail.messagingengine.com> <1166809000.3783.206.camel@silverbirch.site> Subject: Re: URGENT: Out of disk space pg_xlog In-Reply-To: <1166809000.3783.206.camel@silverbirch.site> Date: Fri, 22 Dec 2006 12:39:48 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/498 X-Sequence-Number: 22554 checkpoint_segments has been set at 12 for a while and was never set higher than that. (before that it was set to the PG default - 3 I think) Before the server crashed I was running an update that updates a boolean flag on two large tables (10 million rows each) for transactions older than today (roughly 80% of the rows) The transaction ran for a long time and I assume is what caused the pg_xlog to fill up. On Fri, 22 Dec 2006 17:36:39 +0000, "Simon Riggs" said: > On Fri, 2006-12-22 at 12:30 -0500, Jeremy Haile wrote: > > The archive_status directory is empty. I've never seen any files in > > there and I've never set archive_command. > > > > Well, the problem has since resolved, but here is what is in the > > directory now. Previously there were hundreds of files, but these > > disappeared after Postgres performed the automatic recovery. > > What were you doing before the server crashed? > > Did you previously have checkpoint_segments set higher? When/how was it > reduced? > > -- > Simon Riggs > EnterpriseDB http://www.enterprisedb.com > >