Re: Deleting old archived WAL files

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Chander Ganesan <chander(at)otg-nc(dot)com>
Cc: Jaume Sabater <jsabater(at)linuxsilo(dot)net>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Deleting old archived WAL files
Date: 2008-10-30 21:26:28
Message-ID: 1225401988.3971.440.camel@ebony.2ndQuadrant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On Thu, 2008-10-30 at 16:17 -0400, Chander Ganesan wrote:

> Why? If you haven't saved a backup that you made previously (using
> pg_start_backup()), having archived wal files is useless. I don't see
> why you just don't arbitrarily remove them immediately.
>
> WAL files are useful when you have a "starting point" (i.e., a backup
> made using the PITR backup method), and a set of WAL files generated
> "after" the starting point. If you don't preserve the start point
> (i.e., the PITR backup) then the WAL files are basically useless.

They are still better than nothing at all. I haven't read the whole
thread, but suggesting deleting things like that makes me go all
twitchy. :-). Do a couple of proper backups and then delete em.

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jaume Sabater 2008-10-31 11:32:42 Re: Deleting old archived WAL files
Previous Message Chander Ganesan 2008-10-30 20:17:44 Re: Deleting old archived WAL files