Re: create index on function - why?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Wei Weng <wweng(at)kencast(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: create index on function - why?
Date: 2002-02-15 17:01:28
Message-ID: 20020215170128.GB2025@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Feb 15, 2002 at 11:25:40AM -0500,
Wei Weng <wweng(at)kencast(dot)com> wrote:
> 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?

If a where clause includes a function reference, than an index on that
function can speed up finding rows that satisfy the where clause.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Graham Vickrage 2002-02-15 17:14:28 SQL For smarties
Previous Message Tom Lane 2002-02-15 16:46:46 Re: create index on function - why?