pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Carol Walter <walterc@indiana.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: What process clears the logs?
Date: Tue, 30 Sep 2008 12:26:42 -0700
Message-ID: <48E27D72.9040409@pinpointresearch.com> (raw)
In-Reply-To: <64D96E8A-8E58-458C-B299-8998112F88FA@indiana.edu>
References: <64D96E8A-8E58-458C-B299-8998112F88FA@indiana.edu>

Carol Walter wrote:
> Greetings,
>
> As you may be aware, we experienced a problem last week with pg_clogs 
> that had been deleted, through human error it appears.  What process 
> will clear or delete the pg_clogs?  I've been all over the 
> documentation and I'm not finding a reference to this.
>
PostgreSQL takes care of this itself. I don't know where it is 
documented but IIRC from old messages, the number of files in pg_xlog 
should level out at about two-times your checkpoint_settings value.

I'd have to do some digging as I don't recall for sure, but I think that 
if you are using archive_command setting to archive WAL files  the 
archive command does not return "success", then the WAL file will not be 
removed/reused.

Cheers,
Steve




view thread (5+ messages)  latest in thread

Message-ID: <48E27D72.9040409@pinpointresearch.com>
Permalink:  ../48E27D72.9040409@pinpointresearch.com/
Also on:    postgresql.org/message-id/48E27D72.9040409@pinpointresearch.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com, walterc@indiana.edu
  Subject: Re: What process clears the logs?
  In-Reply-To: <48E27D72.9040409@pinpointresearch.com>

* 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