Re: General queston on getting rid of unused WAL files

From: "Benjamin Krajmalnik" <kraj(at)servoyant(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: General queston on getting rid of unused WAL files
Date: 2013-01-09 03:27:34
Message-ID: F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Tuesday, January 08, 2013 7:17 PM
To: Benjamin Krajmalnik
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] General queston on getting rid of unused WAL files

"Benjamin Krajmalnik" <kraj(at)servoyant(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message wangxvwang 2013-01-09 04:49:55 How can i get the listed columns which mentioned in a update command in a trigger ?
Previous Message Tom Lane 2013-01-09 02:16:40 Re: General queston on getting rid of unused WAL files