From: Alvaro Herrera <alvherre@commandprompt.com>
To: ohp@pyrenet.fr
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Jeremy Haile <jhaile@fastmail.fm>
Cc: pgsql-performance@postgresql.org
Subject: Re: URGENT: Out of disk space pg_xlog
Date: Fri, 22 Dec 2006 17:25:43 -0300
Message-ID: <20061222202543.GA12031@alvh.no-ip.org> (raw)
In-Reply-To: <Pine.UW2.4.53.0612221943070.10324@sun.pyrenet>
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>
<Pine.UW2.4.53.0612221943070.10324@sun.pyrenet>
ohp@pyrenet.fr wrote:
> On Fri, 22 Dec 2006, Tom Lane wrote:
>
> > Date: Fri, 22 Dec 2006 13:14:18 -0500
> > From: Tom Lane <tgl@sss.pgh.pa.us>
> > To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
> > Cc: Jeremy Haile <jhaile@fastmail.fm>, pgsql-performance@postgresql.org
> > Subject: Re: [PERFORM] URGENT: Out of disk space pg_xlog
> >
> > "Kevin Grittner" <Kevin.Grittner@wicourts.gov> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: alvherre@commandprompt.com, ohp@pyrenet.fr, tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov, jhaile@fastmail.fm
Subject: Re: URGENT: Out of disk space pg_xlog
In-Reply-To: <20061222202543.GA12031@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox