From: Robert.Farrugia@go.com.mt
To: nickf@ontko.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Can't get postmaster to restart after removing WAL files
Date: Wed, 12 Sep 2001 15:06:44 +0200
Message-ID: <OFE41A1054.105B0BDC-ONC1256AC5.00475D90@go.com.mt> (raw)
You can try running pg_resetxlog (situated in the contrib directory in the
source). It will reset the wal files and will allow you to restart the
postmaster. It is not the recommended way but I used in in dire
emergencies and it worked.
Normally, when you fill up the drive because of WALs, you should try to
free up 16MB. If the drive is the same as the database, you can move one
file from the database directory to another partition, create a soft link
to the file, and restart the database. Once the WAL files are removed by
the postmaster, you should stop it, and copy back the file. Try to upgrade
to 7.1.3 since it solves some issues where long transactions take up an
unordinated amount of space unecessary.
As regards to the space required by the WAL files this depends on the
configuration (postgresql.conf). There is a paramter which controls the
amount of WAL files to create (each file takes 16MB).
Hope it helps
Robert
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: Robert.Farrugia@go.com.mt, nickf@ontko.com
Subject: Re: Can't get postmaster to restart after removing WAL files
In-Reply-To: <OFE41A1054.105B0BDC-ONC1256AC5.00475D90@go.com.mt>
References: <OFE41A1054.105B0BDC-ONC1256AC5.00475D90@go.com.mt>
* 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