Re: How come index isn't being used when query by function return value?

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Joseph Shraibman" <jks(at)selectacast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How come index isn't being used when query by function return value?
Date: 2006-07-13 21:01:03
Message-ID: b42b73150607131401o11a7bff8n2efe00d7f010aa2f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/13/06, Joseph Shraibman <jks(at)selectacast(dot)net> wrote:
> db:db=>explain select * from elog where id = eds('2006-01-01');
> QUERY PLAN
> -------------------------------------------------------------------------------------------
> Seq Scan on elog (cost=0.00..1894975.10 rows=1 width=204)
> Filter: (id = eds('2006-01-01 00:00:00'::timestamp without time zone))
> (2 rows)

is eds immutable function?

Merlin

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Hart 2006-07-13 21:08:50 Re: Is there a way to run tables in RAM?
Previous Message lanczos 2006-07-13 20:40:29 Re: =???UTF-8?Q?re: How to insert .xls...