Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BB9264760C9 for ; Mon, 9 Dec 2002 11:55:06 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 6D5D747633C for ; Mon, 9 Dec 2002 11:47:04 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gB9Gl8pd008514; Mon, 9 Dec 2002 11:47:08 -0500 (EST) To: Erin Munro Cc: pgsql-admin@postgresql.org Subject: Re: WAL disk space In-reply-to: <3DF4BF3E.8090501@ll.mit.edu> References: <3DF4BF3E.8090501@ll.mit.edu> Comments: In-reply-to Erin Munro message dated "Mon, 09 Dec 2002 11:05:18 -0500" Date: Mon, 09 Dec 2002 11:47:08 -0500 Message-ID: <8513.1039452428@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/101 X-Sequence-Number: 6596 Erin Munro 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