From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Cc: Pgsql-Admin (E-mail) <pgsql-admin@postgresql.org>
Subject: Re: Can I delete all WAL logfiles if the database is shutdown without errors?
Date: Tue, 07 Mar 2006 10:07:39 -0500
Message-ID: <18484.1141744059@sss.pgh.pa.us> (raw)
In-Reply-To: <A3D1526C98B7C1409A687E0943EAC4107DEB44@obelix.askesis.nl>
References: <A3D1526C98B7C1409A687E0943EAC4107DEB44@obelix.askesis.nl>
"Joost Kraaijeveld" <J.Kraaijeveld@Askesis.nl> writes:
> Can I safely delete all the WAL log files in PGDATA/pg_xlog directory if the database has been shut down correctly, because I lowered the number of logfiles in postgresql.conf?
All but the one holding the latest checkpoint record (pg_controldata
will tell you which one that is). I'm not sure why you'd bother though.
The next checkpoint should remove any excess log files, there's no need
to do it manually.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, J.Kraaijeveld@Askesis.nl
Subject: Re: Can I delete all WAL logfiles if the database is shutdown without errors?
In-Reply-To: <18484.1141744059@sss.pgh.pa.us>
References: <A3D1526C98B7C1409A687E0943EAC4107DEB44@obelix.askesis.nl> <18484.1141744059@sss.pgh.pa.us>
* 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