Re: create index on function - why?
| От | Philip Warner |
|---|---|
| Тема | Re: create index on function - why? |
| Дата | |
| Msg-id | 5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au обсуждение исходный текст |
| Ответ на | Re: create index on function - why? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | 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 по дате отправления: