Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 679409FA249 for ; Fri, 22 Dec 2006 16:26:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 06007-01 for ; Fri, 22 Dec 2006 16:25:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 7CDAC9FA0BA for ; Fri, 22 Dec 2006 16:25:58 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-100-202.bk7-dsl.surnet.cl [200.126.100.202]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kBMKPlK3010837; Fri, 22 Dec 2006 12:25:51 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8DAFA329F9; Fri, 22 Dec 2006 17:25:43 -0300 (CLST) Date: Fri, 22 Dec 2006 17:25:43 -0300 From: Alvaro Herrera To: ohp@pyrenet.fr Cc: Tom Lane , Kevin Grittner , Jeremy Haile , pgsql-performance@postgresql.org Subject: Re: URGENT: Out of disk space pg_xlog Message-ID: <20061222202543.GA12031@alvh.no-ip.org> Mail-Followup-To: ohp@pyrenet.fr, Tom Lane , Kevin Grittner , Jeremy Haile , pgsql-performance@postgresql.org References: <1166803606.2828.281701761@webmail.messagingengine.com> <1166806378.10592.281708161@webmail.messagingengine.com> <458BC058.EE98.0025.0@wicourts.gov> <26238.1166811258@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 22 Dec 2006 12:25:52 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/504 X-Sequence-Number: 22560 ohp@pyrenet.fr wrote: > On Fri, 22 Dec 2006, Tom Lane wrote: > > > Date: Fri, 22 Dec 2006 13:14:18 -0500 > > From: Tom Lane > > To: Kevin Grittner > > Cc: Jeremy Haile , pgsql-performance@postgresql.org > > Subject: Re: [PERFORM] URGENT: Out of disk space pg_xlog > > > > "Kevin Grittner" writes: > > > As I understand it, the log space accumulates for the oldest transaction > > > which is still running, and all transactions which started after it. > > > > No, pg_xlog can be truncated as soon as a checkpoint occurs. > > Even for currently running transactions ? > > My understanding was that checkpoint was syncing data files for commited > transactions. No, it syncs data files for all transactions, even those currently running. > What happens to pg_xlogs when a transaction updates M of rows/tables and > runs for hours? They get recycled as the update goes. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.