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 686BF8B9C9C for ; Tue, 1 Feb 2005 05:29:22 +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 08523-10 for ; Tue, 1 Feb 2005 05:29:17 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 969298B9BC9 for ; Tue, 1 Feb 2005 05:29:16 +0000 (GMT) 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 j115TF8Y010298; Tue, 1 Feb 2005 00:29:15 -0500 (EST) To: "Trevor Ball" Cc: pgsql-performance@postgresql.org Subject: Re: Index Slowing Insert >50x In-reply-to: References: Comments: In-reply-to "Trevor Ball" message dated "Mon, 31 Jan 2005 16:14:39 -0500" Date: Tue, 01 Feb 2005 00:29:15 -0500 Message-ID: <10297.1107235755@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/6 X-Sequence-Number: 10335 "Trevor Ball" writes: > ... it doesn't > seem reasonable to me that an index would slow an insert more than > 50-fold, regardless of hardware or the nature of the index. Seems pretty slow to me too. Can you provide a self-contained test case? One possibility is that depending on your platform and locale setting, varchar comparisons can be a whole lot slower than a normal person would consider sane. If you're not using C locale, you might try C locale and see if it helps. regards, tom lane