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

From Philip Warner
Subject Re: create index on function - why?
Date
Msg-id 5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au
Whole thread Raw
In response to Re: create index on function - why?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
At 11:46 AM 15/02/2002 -0500, Tom Lane wrote:
>A functional index is sort of like a hidden, precomputed column added to
>your table.

One of the things I keep running into is the desire for a mixed 
functional/data index. I know the workaround is to build a function that 
combines all fields, but would it be hard to allow mixed indexes:
    create table users(id integer, last_name text);    create index users_id_name on users(id,lower(name));

?




----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/



pgsql-sql by date:

Previous
From: Terry Yapt
Date:
Subject: Parameterized Views on 7.3
Next
From: Arnaudo Massimo
Date:
Subject: Password user postgres