Re: pg_xlog - files are guaranteed to be sequentialy named?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Johannes Konert <jkonert(at)t3go(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_xlog - files are guaranteed to be sequentialy named?
Date: 2007-06-13 13:36:43
Message-ID: 20070613133643.GH4640@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Johannes Konert wrote:
> Hi pgsql-list-members,
> I currently write a small script that deletes outdated xlog-files from
> my backup-location.
> Because I do not want to rely on creation-date, I found it usable to use
> the result of
> ln | sort -g -r
> Thus the newest WAL xlog-file is on top and I can delete all not needed
> files at the bottom of the list.

Warning, this is NOT SAFE to do. You should NEVER delete "outdated"
xlog files, unless you appreciate RANDOM CORRUPTION of your data.

Not sure how those caps sneaked in there, sorry about that.

Have a nice day,

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-06-13 13:45:52 Re: [GENERAL] psql : Error: Cannot stat /pgdata/8.2/main
Previous Message Andrus 2007-06-13 13:13:15 Re: how to speed up query