pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erin Munro <emunro@ll.mit.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: WAL disk space
Date: Mon, 09 Dec 2002 11:47:08 -0500
Message-ID: <8513.1039452428@sss.pgh.pa.us> (raw)
In-Reply-To: <3DF4BF3E.8090501@ll.mit.edu>
References: <3DF4BF3E.8090501@ll.mit.edu>

Erin Munro <emunro@ll.mit.edu> writes:
> An empty database cluster takes up 20 MB, 16 of which
> are dedicated to a WAL file. This seems to be a lot
> for a small or low-traffic database. Is there any way
> to reduce the size of this WAL file, besides reverting
> to version 7.0 (where WAL isn't used)?

Reduce XLogSegSize in src/include/access/xlog.h.  Recompile,
re-initdb (or at least do pg_resetxlog), put up with more frequent
checkpoints.

With sufficiently low write activity this might be worthwhile, but
I find it hard to think of any recently-manufactured hardware wherein
16MB of disk space is worth agonizing over.

			regards, tom lane



view thread (4+ messages)

Message-ID: <8513.1039452428@sss.pgh.pa.us>
Permalink:  ../8513.1039452428@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8513.1039452428@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, emunro@ll.mit.edu
  Subject: Re: WAL disk space
  In-Reply-To: <8513.1039452428@sss.pgh.pa.us>
  References: <3DF4BF3E.8090501@ll.mit.edu> <8513.1039452428@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