Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4SCglA98743 for ; Mon, 28 May 2001 08:42:47 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4OBvoA07286 for ; Thu, 24 May 2001 07:57:50 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4OBjcs30659 for pgsql-admin@postgresql.org; Thu, 24 May 2001 07:45:38 -0400 (EDT) (envelope-from news) From: "Murat YILDIZ" X-Newsgroups: comp.databases.postgresql.admin Subject: Ynt: WAL and backup recovery Date: Thu, 24 May 2001 14:45:54 +0300 Organization: Boytas Mobilya A.S. Lines: 37 Message-ID: <9eis8v$ttv$1@news.tht.net> References: <14951.990634138@sss.pgh.pa.us> Reply-To: "Murat YILDIZ" X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: pgsql-admin@postgresql.org X-Archive-Number: 200105/153 X-Sequence-Number: 1510 Tom Lane wrote in message news:14951.990634138@sss.pgh.pa.us... > 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. So let me know one thing, does checkpoint cause copying modified pages to WAL log or does it just flush the modified pages to disk? I thought WAL writings occur when pages being modified, deleted or inserted, please correct me if I am wrong...thanx.... Murat > > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)