pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Anj Adu <fotographs@gmail.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: slow index lookup
Date: Tue, 22 Jun 2010 18:10:15 -0700
Message-ID: <1277255415.14943.20.camel@jd-desktop.unknown.charter.com> (raw)
In-Reply-To: <AANLkTim9I-YzoDuTK381tvAB1txEojQEYz_-XPygt7Ok@mail.gmail.com>
References: <AANLkTimoNh8cPlwR5oYE9jdmr4aR3ThAxpnAsmnujIYK@mail.gmail.com>
	<1277250226-sup-6686@alvh.no-ip.org>
	<AANLkTim9I-YzoDuTK381tvAB1txEojQEYz_-XPygt7Ok@mail.gmail.com>

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
> <alvherre@commandprompt.com> 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 <alvherre@commandprompt.com>
> > 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




view thread (9+ messages)  latest in thread

Message-ID: <1277255415.14943.20.camel@jd-desktop.unknown.charter.com>
Permalink:  ../1277255415.14943.20.camel@jd-desktop.unknown.charter.com/
Also on:    postgresql.org/message-id/1277255415.14943.20.camel@jd-desktop.unknown.charter.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jd@commandprompt.com, fotographs@gmail.com, alvherre@commandprompt.com
  Subject: Re: slow index lookup
  In-Reply-To: <1277255415.14943.20.camel@jd-desktop.unknown.charter.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox