Received: from kaxxa.go.com.mt ([194.158.48.3]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8CD91765974 for ; Wed, 12 Sep 2001 09:09:03 -0400 (EDT) (envelope-from Robert.Farrugia@go.com.mt) Received: from jupiter.go.com.mt (jupiter [194.158.48.95]) by kaxxa.go.com.mt (8.9.3/8.8.7) with ESMTP id PAA02942; Wed, 12 Sep 2001 15:08:30 +0200 Subject: Re: Can't get postmaster to restart after removing WAL files To: nickf@ontko.com Cc: pgsql-admin@postgresql.org X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: Robert.Farrugia@go.com.mt Date: Wed, 12 Sep 2001 15:06:44 +0200 X-MIMETrack: Serialize by Router on Jupiter/MobIsle(Release 5.0.7 |March 21, 2001) at 09/12/2001 03:07:53 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Archive-Number: 200109/58 X-Sequence-Number: 2158 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