pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hosokawa Tetsuichi <hosokawa@good-day.co.jp>
To: pgsql-sql@postgresql.org
Subject: Re: Surprising sequence scan when function call used
Date: Thu, 26 Oct 2000 13:08:49 +0900
Message-ID: <20001026040849.BB795405E@poseidon.good-day.co.jp> (raw)
In-Reply-To: <KPELIDPNOGGPCLGOMDLFOEIKCDAA.fitzgerald@inetmi.com>
References: <KPELIDPNOGGPCLGOMDLFOEIKCDAA.fitzgerald@inetmi.com>

see
functional index

On Wed, 25 Oct 2000 13:26:51 -0400
"Will Fitzgerald" <fitzgerald@inetmi.com> wrote:

> I have a table, login, which has a field by the same name; there's an index
> on that field. I was surprised to discover that a SELECT which compares the
> login field to a constant uses an Index scan, but if it is compared to a
> function call--for example, lower()--a sequence scan is forced.
> 
> Any idea why?
--
* Hosokawa Tetsuichi
* hosokawa@good-day.co.jp



view thread (3+ messages)

Message-ID: <20001026040849.BB795405E@poseidon.good-day.co.jp>
Permalink:  ../20001026040849.BB795405E@poseidon.good-day.co.jp/
Also on:    postgresql.org/message-id/20001026040849.BB795405E@poseidon.good-day.co.jp

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: hosokawa@good-day.co.jp
  Subject: Re: Surprising sequence scan when function call used
  In-Reply-To: <20001026040849.BB795405E@poseidon.good-day.co.jp>
  References: <KPELIDPNOGGPCLGOMDLFOEIKCDAA.fitzgerald@inetmi.com> <20001026040849.BB795405E@poseidon.good-day.co.jp>

* 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