Re: Old pg_xlog files - Mailing list pgsql-general

From Tom Lane
Subject Re: Old pg_xlog files
Date
Msg-id 18637.1143054876@sss.pgh.pa.us
Whole thread Raw
In response to Re: Old pg_xlog files  (Vivek Khera <vivek@khera.org>)
Responses Re: Old pg_xlog files  ("Tass Chapman" <tasseh.postgres@gmail.com>)
List pgsql-general
Vivek Khera <vivek@khera.org> writes:
> On Mar 22, 2006, at 1:37 PM, Tass Chapman wrote:
>> Checkpoints appear to be up to date (via pg_controldata), but the
>> pg_xlog directory has 95 files, of which 90 are dated before
>> midnight yesterday or earlier.
>>
>> Can I just delete them safely? Or is there some recovery method I
>> can do?

> no, do not delete them.  they will eventually be re-used.  check back
> in a few days and see how old the various files are...

If there are more than about 2*checkpoint_segments of them, the extras
will be removed by the next successful checkpoint.  So there's really no
reason to touch them manually.

            regards, tom lane

pgsql-general by date:

Previous
From: Jeffrey Melloy
Date:
Subject: Re: Advantages of PostgreSQL over MySQL 5.0
Next
From: Tony Caduto
Date:
Subject: question about the admin contrib module and binary RPMs