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 1815A329D15 for ; Thu, 16 Sep 2004 22:23:36 +0100 (BST) 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 98914-02 for ; Thu, 16 Sep 2004 21:23:24 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id C57CF329D87 for ; Thu, 16 Sep 2004 22:23:25 +0100 (BST) Received: from [64.81.245.111] (account josh@agliodbs.com HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6362637; Thu, 16 Sep 2004 14:24:46 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Qing Zhao Subject: Re: indexes make other queries slow! Date: Thu, 16 Sep 2004 14:24:28 -0700 User-Agent: KMail/1.6.2 Cc: 'Postgresql Performance' References: <200409161050.33289.josh@agliodbs.com> <200409161405.28778.josh@agliodbs.com> <3C40F514-0826-11D9-B278-000A95AB8896@supplyfx.com> In-Reply-To: <3C40F514-0826-11D9-B278-000A95AB8896@supplyfx.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409161424.28644.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/179 X-Sequence-Number: 8307 Qing, > My guess is that all the queries that involves the columns that are > being indexed need to > be rewritten to use the newly created indexes to avoid the performance > issues. The reason > is that REINDEX does not help either. Does it make sense? What's the rate of updates on the newly indexed tables? If you have a lot of updates, the work that the database does to keep the indexes current would put a big load on your server. This is far more likely to be the cause of your issues. -- --Josh Josh Berkus Aglio Database Solutions San Francisco