X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EA769D7152 for ; Wed, 14 Sep 2005 14:58:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98730-10 for ; Wed, 14 Sep 2005 17:58:15 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id DAEC9D6FD1 for ; Wed, 14 Sep 2005 14:58:15 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j8EHwEU1006160; Wed, 14 Sep 2005 13:58:14 -0400 (EDT) To: William Yu Cc: pgsql-admin@postgresql.org Subject: Re: Disabling WAL for bulk data loads In-reply-to: References: Comments: In-reply-to William Yu message dated "Wed, 14 Sep 2005 09:47:54 -0700" Date: Wed, 14 Sep 2005 13:58:14 -0400 Message-ID: <6159.1126720694@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/165 X-Sequence-Number: 18902 William Yu writes: > If you have enough memory, you can always make a ramdisk to store the > WAL temporarily while you bulk load data. I also temporarily alter the > config to set checkpoint_segments = 1 to use as few pg_xlog files as > possible. Really? That seems pretty counterproductive to me. I've never seen a case where reducing checkpoint_segments increased performance. Checkpoints are expensive, and usually you want 'em far apart. regards, tom lane