Received: from sss.pgh.pa.us (sss.pgh.pa.us [216.151.103.158]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4NG9KA41054 for ; Wed, 23 May 2001 12:09:20 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f4NG8wR14954; Wed, 23 May 2001 12:08:58 -0400 (EDT) To: Dario Brignardello cc: pgsql-admin@postgresql.org Subject: Re: WAL and backup recovery In-reply-to: <3B0BAC6B.21A7ADE5@sinectis.com> References: <3B0BAC6B.21A7ADE5@sinectis.com> Comments: In-reply-to Dario Brignardello message dated "Wed, 23 May 2001 09:26:19 -0300" Date: Wed, 23 May 2001 12:08:58 -0400 Message-ID: <14951.990634138@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200105/128 X-Sequence-Number: 1485 Dario Brignardello writes: > checkpoint_segments = 1 > checkpoint_timeout = 30 Reducing checkpoint_segments and checkpoint_timeout is actually seriously counterproductive, if your problem is amount of disk space chewed up by WAL logs during a long transaction (such as bulk load of a big table). The WAL log cannot be truncated until the xact commits, so the checkpoints that happen meanwhile just cause log bloat. Lots of it, because each checkpoint causes fresh copying of modified pages into the WAL log. Try increasing those numbers, not decreasing them. Maybe 10/600 or so? Also, if you are short on disk space for WAL, increasing wal_files isn't such a great idea either. regards, tom lane