Re: WAL file lifespan (7.1RC1)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brian Baquiran" <brianb(at)edsamail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: WAL file lifespan (7.1RC1)
Date: 2001-03-27 05:06:00
Message-ID: 3941.985669560@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Brian Baquiran" <brianb(at)edsamail(dot)com> writes:
> How long should I expect WAL files in $PGDATA/pg_xlog to hang around?

It depends. How long are your transactions?

The current algorithm is for each checkpoint to discard log data before
the start of the oldest transaction that was open during the last
checkpoint.

Checkpoints don't happen if nothing has happened since the last
checkpoint, so if you just sit there and watch pg_xlog then you
won't see anything disappearing. But if you're using the database then
old files should get cleaned up with reasonable promptness.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message jin_luo 2001-03-27 05:07:29 download PostgreSQL
Previous Message Christian Marschalek 2001-03-27 05:00:31 RE: PostgreSQL under Windows?