By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,302 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,302 IT Pros & Developers. It's quick & easy.

indexes on columns and functions

P: n/a
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
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 11 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
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

Nov 11 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.