Re: create index on function - why? - Mailing list pgsql-sql

From Nick Fankhauser
Subject Re: create index on function - why?
Date
Msg-id NEBBLAAHGLEEPCGOBHDGIELJEFAA.nickf@ontko.com
Whole thread Raw
In response to create index on function - why?  (Wei Weng <wweng@kencast.com>)
List pgsql-sql
I don't know yet if it will help me. (I was doing empirical research when I
ran into my problem.) My reasoning went like this:

Since using a function in my "where" clause forces postgresql to do a table
scan instead of using my index on the field, I was hoping to build an index
on the function, which *would* get used. I'm pretty sure this will work, but
I'll post my results to the list if I find that it doesn't work.

-Nick



> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Wei Weng
> Sent: Friday, February 15, 2002 11:26 AM
> To: pgsql-sql@postgresql.org
> Subject: [SQL] create index on function - why?
>
>
> I can understand the rationale behind creating index on tables, it
> speeds up the searching.
>
> But what is the rationale behind creating index on a function? how does
> it help with the database performance?
>
> Thank you.
>
> --
> Wei Weng
> Network Software Engineer
> KenCast Inc.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>



pgsql-sql by date:

Previous
From: "Nick Fankhauser"
Date:
Subject: Re: creating an index on a function
Next
From: Tom Lane
Date:
Subject: Re: create index on function - why?