pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: andy.shellam@mailnetwork.co.uk
Cc: Stefan.Schmidt@schinkel.de
Cc: pgsql-admin@postgresql.org
Subject: Re: 2,2gb of pg_xlog ??
Date: Thu, 22 Jun 2006 10:03:04 -0400
Message-ID: <20060622140304.GJ29883@surnet.cl> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAANc7qPyPxh1JrLXPElQequQBAAAAAA==@andycc.net>
References: <0000EA81.4497EA95@192.168.3.13>
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAANc7qPyPxh1JrLXPElQequQBAAAAAA==@andycc.net>

Andy Shellam wrote:

> Archive_command = "mv %p /your/backup/directory/%f"

Don't do this.  Postgres itself will remove the file after the
archive_command has copied it elsewhere.

> Tip: if you're absolutely sure you will never need these transaction logs,
> you can use the following command to delete them when they're finished with:
> 
> Archive_command = "rm -f %p"

Don't do this either.  If you're not using PITR, just set a blank
archive_command and Postgres will delete the file as soon as it's not
needed anymore.

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



view thread (8+ messages)  latest in thread

Message-ID: <20060622140304.GJ29883@surnet.cl>
Permalink:  ../20060622140304.GJ29883@surnet.cl/
Also on:    postgresql.org/message-id/20060622140304.GJ29883@surnet.cl

 · 

reply

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: alvherre@commandprompt.com, andy.shellam@mailnetwork.co.uk, Stefan.Schmidt@schinkel.de
  Subject: Re: 2,2gb of pg_xlog ??
  In-Reply-To: <20060622140304.GJ29883@surnet.cl>
  References: <0000EA81.4497EA95@192.168.3.13> <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAANc7qPyPxh1JrLXPElQequQBAAAAAA==@andycc.net> <20060622140304.GJ29883@surnet.cl>

* 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