pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <mladen.gogala@vmsinfo.com>
To: AI Rumman <rummandba@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Index scan is not working, why??
Date: Thu, 21 Oct 2010 09:27:44 -0400
Message-ID: <4CC03FD0.80003@vmsinfo.com> (raw)
In-Reply-To: <AANLkTinvBPfo8KcNVEkvt35fEOeO9OREyvq8WpcqbrBg@mail.gmail.com>
References: <AANLkTinvBPfo8KcNVEkvt35fEOeO9OREyvq8WpcqbrBg@mail.gmail.com>

AI Rumman wrote:
> I don't know why seq scan is running on the following query where the 
> same query is giving index scan on other servers:
> explain analyze
> select *
> from act
> where act.acttype in ( 'Meeting','Call','Task');
>   QUERY PLAN  
> ----------------------------------------------------------------------------------------------------------------------------------------
>  Seq Scan on act (cost=0.00..13386.78 rows=259671 width=142) (actual 
> time=0.013..484.572 rows=263639 loops=1)
>   Filter: (((acttype)::text = 'Meeting'::text) OR ((acttype)::text = 
> 'Call'::text) OR ((acttype)::text = 'Task'::text))
>  Total runtime: 732.956 ms
> (3 rows)
Al, what percentage of the rows fits the above criteria? How big are 
your histograms?

-- 
Mladen Gogala 
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
www.vmsinfo.com 




view thread (5+ messages)  latest in thread

Message-ID: <4CC03FD0.80003@vmsinfo.com>
Permalink:  ../4CC03FD0.80003@vmsinfo.com/
Also on:    postgresql.org/message-id/4CC03FD0.80003@vmsinfo.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: mladen.gogala@vmsinfo.com, rummandba@gmail.com
  Subject: Re: Index scan is not working, why??
  In-Reply-To: <4CC03FD0.80003@vmsinfo.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