From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, wweng(at)kencast(dot)com |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: create index on function - why? |
Date: | 2002-12-22 10:18:22 |
Message-ID: | 5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Mathieu Arnold | 2002-12-22 15:09:19 | Re: Password user postgres |
Previous Message | Tomasz Myrta | 2002-12-22 07:48:29 | Re: Password user postgres |