pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Sarsale <martin@emepe3.net>
To: pgsql-performance@postgresql.org
Subject: Re: seqscan instead of index scan
Date: Mon, 30 Aug 2004 15:17:29 -0300
Message-ID: <1093889849.1680.83.camel@kadaif> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3412A748D@Herge.rcsinc.local>
References: <6EE64EF3AB31D5448D0007DD34EEB3412A748D@Herge.rcsinc.local>

On Mon, 2004-08-30 at 15:06, Merlin Moncure wrote:
> create function is_somethingable (ctype, dtype) returns boolean as

Thanks, but I would prefer a simpler solution.

I would like to know why this uses a seqscan instead of an index scan:

create index t_idx on t((c+d));
select * from t where c+d > 0; 

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (14+ messages)  latest in thread

Message-ID: <1093889849.1680.83.camel@kadaif>
Permalink:  ../1093889849.1680.83.camel@kadaif/
Also on:    postgresql.org/message-id/1093889849.1680.83.camel@kadaif

 · 

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: martin@emepe3.net
  Subject: Re: seqscan instead of index scan
  In-Reply-To: <1093889849.1680.83.camel@kadaif>

* 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