pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: andy.shellam@mailnetwork.co.uk
Cc: 'Alvaro Herrera' <alvherre@commandprompt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: 2,2gb of pg_xlog ??
Date: Thu, 22 Jun 2006 10:22:16 -0400
Message-ID: <23663.1150986136@sss.pgh.pa.us> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAFHHQgXpWLhOkyRAoegjeVUBAAAAAA==@andycc.net>
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAFHHQgXpWLhOkyRAoegjeVUBAAAAAA==@andycc.net>

"Andy Shellam" <andy@andycc.net> writes:
>> Don't do this.  Postgres itself will remove the file after the
>> archive_command has copied it elsewhere.

> In my 8.1.3 install, it didn't - when I specified a cp command, it left the
> files there.  I had to define the command as "mv" to have them moved.

If it left the files there, it had a reason to (probably, that it wanted
to rename them for use as new WAL segments).  It is NOT NOT NOT the job
of the archive_command to do anything except copy the data somewhere else.

Back to the OP's problem: failure to recycle WAL segments requires some
active looking into, not mindless removal of files.  The only
explanations I can think of are that he's got the checkpoint interval
settings at wacko values, or more likely something is preventing
checkpoints from completing; if so, it's desperately important to find
out what and fix it.  Manual file removal is addressing a symptom not
the problem.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <23663.1150986136@sss.pgh.pa.us>
Permalink:  ../23663.1150986136@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23663.1150986136@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, andy.shellam@mailnetwork.co.uk, alvherre@commandprompt.com
  Subject: Re: 2,2gb of pg_xlog ??
  In-Reply-To: <23663.1150986136@sss.pgh.pa.us>
  References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAFHHQgXpWLhOkyRAoegjeVUBAAAAAA==@andycc.net> <23663.1150986136@sss.pgh.pa.us>

* 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