On Wed, 2 Jul 2003, Joseph Shraibman wrote:

> You can CREATE INDEX on multiple columns, and you can CREATE INDEX on
> a functions, but can you create an index on multiple columns and
> functions?  For example if I want to create an index on
> lower(textfield), intfield

In 7.3 or earlier you'd have to write a mangling function that took
multiple columns did functions you wanted and appended the fields together
in some fashion I believe.  In 7.4 you can make a index like the above
with something like
create index foo on tab((lower(textfield)), intfield)



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

Reply via email to