pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benjamin Krajmalnik <kraj@servoyant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: General queston on getting rid of unused WAL files
Date: Tue, 8 Jan 2013 20:27:34 -0700
Message-ID: <F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local> (raw)
In-Reply-To: <8318.1357697800@sss.pgh.pa.us>
References: <F4E6A2751A2823418A21D4A160B6898892B7EC@fletch.stackdump.local>
	<8318.1357697800@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

It is set to 1024 (I had set it to that level just in case it was needed
due to a peak in workload), and presently I have 2121 WAL files.
Thanks for the info - just reduced it to 256, and will go form there.


-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Tuesday, January 08, 2013 7:17 PM
To: Benjamin Krajmalnik
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] General queston on getting rid of unused WAL files

"Benjamin Krajmalnik" <kraj@servoyant.com> writes:
> Looking at pg_xlogs, I see that postgres is sequentially reusing all 
> of the available WAL files, while looking at the log file, it is 
> recycling approximately 70-80 files every checkpoint, but it is not 
> removing any files.

[ squint... ]  It should be removing those files until it gets under
approximately 2 * checkpoint_segments WAL files.  So, what have you got
checkpoint_segments set to?

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (3+ messages)

Message-ID: <F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local>
Permalink:  ../F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local/
Also on:    postgresql.org/message-id/F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local

 · 

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: kraj@servoyant.com, tgl@sss.pgh.pa.us
  Subject: Re: General queston on getting rid of unused WAL files
  In-Reply-To: <F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local>
  References: <F4E6A2751A2823418A21D4A160B6898892B7EC@fletch.stackdump.local> <8318.1357697800@sss.pgh.pa.us> <F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local>

* 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