X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9B1AE3A5C9A for ; Sat, 4 Dec 2004 19:17:31 +0000 (GMT) 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 33838-02 for ; Sat, 4 Dec 2004 19:17:24 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 679E23A5C86 for ; Sat, 4 Dec 2004 19:17:23 +0000 (GMT) Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6745021; Sat, 04 Dec 2004 11:18:54 -0800 From: Josh Berkus Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Improve BULK insertion Date: Sat, 4 Dec 2004 11:14:18 -0800 User-Agent: KMail/1.6.2 Cc: Grupos References: <41B1BE1B.10301@carvalhaes.net> In-Reply-To: <41B1BE1B.10301@carvalhaes.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200412041114.18460.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/100 X-Sequence-Number: 9475 Rodrigo, > I need to insert 500.000 records on a table frequently. It=B4s a bulk > insertion from my applicatoin. > I am with a very poor performance. PostgreSQL insert very fast until the > tuple 200.000 and after it the insertion starts to be really slow. > I am seeing on the log and there is a lot of transaction logs, something In addition to what Chris Browne asked: What's your transaction log setup? Are your database transaction logs on = a=20 seperate disk resource? What is checkpoint_segments and checkpoint_timeou= t=20 set to? =2D-=20 Josh Berkus Aglio Database Solutions San Francisco