Re: unique index on function and column

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>, pgsql-sql(at)postgresql(dot)org
Subject: Re: unique index on function and column
Date: 2002-06-25 20:09:25
Message-ID: 200206251309.25232.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bruno,

> Is there a simple way to do something like the following:
> create unique index inst_u_app on inst (lower(host), psport);
>
> It looks like you can have an index on several columns, but not
> several functions.

So? Create two seperate indexes.

Multi-column indexes are almost always less useful that you'd expected,
anyway.

--
-Josh Berkus

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2002-06-25 20:34:53 Re: unique index on function and column
Previous Message Eric 2002-06-25 19:48:10 Re: Limiting database size