Re: Large Number of Files in pg_xlog

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bob Lunney <bob_lunney(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Large Number of Files in pg_xlog
Date: 2009-12-01 03:56:53
Message-ID: 19238.1259639813@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Bob Lunney <bob_lunney(at)yahoo(dot)com> writes:
> Is it possible to reduce the number of files in pg_xlog. Currently,
> checkpoint_segments is set to 512, which if I understand correctly,
> means there could be up to 1025 files in pg_xlog, 16Gb of WAL. Right
> now there are 833 files. I've tried setting checkpoint_segments to a
> lower number and restarting the database, but to no avail.

Patience. It'll trim down the number of files when it gets around
to it (probably at the next checkpoint, but I don't recall the
exact conditions).

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Baubak Gandomi 2009-12-01 16:48:14 pg_restore does not restore all tables
Previous Message Bob Lunney 2009-12-01 03:47:17 Large Number of Files in pg_xlog