Skip site navigation (1) Skip section navigation (2)

Re: URGENT: Out of disk space pg_xlog

From: ohp(at)pyrenet(dot)fr
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Jeremy Haile <jhaile(at)fastmail(dot)fm>, pgsql-performance(at)postgresql(dot)org
Subject: Re: URGENT: Out of disk space pg_xlog
Date: 2006-12-23 14:00:37
Message-ID: Pine.UW2.4.53.0612231459410.5163@sun.pyrenet (view raw, whole thread or download thread mbox)
Thread:
Lists: pgsql-performance
Thanks for your reply.

I learnt something again!
On Fri, 22 Dec 2006, Alvaro Herrera wrote:

> Date: Fri, 22 Dec 2006 17:25:43 -0300
> From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
> To: ohp(at)pyrenet(dot)fr
> Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,
>      Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>,
>      Jeremy Haile <jhaile(at)fastmail(dot)fm>, pgsql-performance(at)postgresql(dot)org
> Subject: Re: [PERFORM] URGENT: Out of disk space pg_xlog
>
> ohp(at)pyrenet(dot)fr wrote:
> > On Fri, 22 Dec 2006, Tom Lane wrote:
> >
> > > Date: Fri, 22 Dec 2006 13:14:18 -0500
> > > From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> > > To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
> > > Cc: Jeremy Haile <jhaile(at)fastmail(dot)fm>, pgsql-performance(at)postgresql(dot)org
> > > Subject: Re: [PERFORM] URGENT: Out of disk space pg_xlog
> > >
> > > "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)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.
>
>

-- 
Olivier PRENANT        	        Tel: +33-5-61-50-97-00 (Work)
15, Chemin des Monges                +33-5-61-50-97-01 (Fax)
31190 AUTERIVE                       +33-6-07-63-80-64 (GSM)
FRANCE                          Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

In response to

pgsql-performance by date

Next:From: Jeremy HaileDate: 2006-12-23 17:32:48
Subject: Re: URGENT: Out of disk space pg_xlog
Previous:From: oliver@obeattie.comDate: 2006-12-23 08:12:03
Subject: What you would consider as heavy traffic?

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group