| From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: How come index isn't being used when query by function return |
| Date: | 2006-07-13 21:22:04 |
| Message-ID: | e96dho$g77$1@news.hub.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
It is STABLE, which I finally figured out. I had to find section 31.6
of the docs, which is nowhere near the part about writing functions.
Merlin Moncure wrote:
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Karen Hill | 2006-07-13 21:32:42 | Re: Is there a way to run tables in RAM? |
| Previous Message | Tim Hart | 2006-07-13 21:08:50 | Re: Is there a way to run tables in RAM? |