Re: is it safe to clear oroginal xlog after archiving it?

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: depesz(at)depesz(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: is it safe to clear oroginal xlog after archiving it?
Date: 2009-06-04 17:05:53
Message-ID: 1244135153.23910.231.camel@ebony.2ndQuadrant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 2009-06-04 at 14:42 +0200, hubert depesz lubaczewski wrote:

> if zero-ing the files was safe, i could compress them more effectively.

Simple rule: Never, ever, ever remove or edit any file in pg_xlog.

There is a command called pg_resetxlog, though that is not designed to
reduce the amount of space in pg_xlog and using it can cause data loss
if used inappropriately.

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kev 2009-06-04 17:07:28 trigger functions with arguments
Previous Message Rastislav Hudak 2009-06-04 16:59:40 Re: recursive execute