Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A220B632FE6 for ; Tue, 22 Jun 2010 22:11:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 30116-06 for ; Wed, 23 Jun 2010 01:10:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (unknown [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 101D2631ADA for ; Tue, 22 Jun 2010 22:10:59 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id D8419348035; Tue, 22 Jun 2010 18:10:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sVGGj0HcgVii; Tue, 22 Jun 2010 18:10:29 -0700 (PDT) Received: from [192.168.1.100] (unknown [71.94.249.122]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id C0E3D348002; Tue, 22 Jun 2010 18:10:28 -0700 (PDT) Subject: Re: slow index lookup From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Anj Adu Cc: Alvaro Herrera , pgsql-performance In-Reply-To: References: <1277250226-sup-6686@alvh.no-ip.org> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Tue, 22 Jun 2010 18:10:15 -0700 Message-ID: <1277255415.14943.20.camel@jd-desktop.unknown.charter.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.293 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201006/383 X-Sequence-Number: 39239 On Tue, 2010-06-22 at 18:00 -0700, Anj Adu wrote: > i have several partitions like this (similar size ...similar data > distribution)..these partitions are only "inserted"..never updated. > Why would I need to vacuum.. > An explain analyze is what is in order for further diagnosis. JD > I can reindex..just curious what can cause the index to go out of whack. > > On Tue, Jun 22, 2010 at 4:44 PM, Alvaro Herrera > wrote: > > Excerpts from Anj Adu's message of mar jun 22 17:44:39 -0400 2010: > >> This query seems unreasonable slow on a well-indexed table (13 million > >> rows). Separate indexes are present on guardid_id , from_num and > >> targetprt columns. > > > > Maybe you need to vacuum or reindex? > > > > -- > > Álvaro Herrera > > The PostgreSQL Company - Command Prompt, Inc. > > PostgreSQL Replication, Consulting, Custom Development, 24x7 support > > > -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering