Re: unique index on function and column

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

On Tue, Jun 25, 2002 at 13:09:25 -0700,
Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> 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.

I was using it to implement a constraint, not to do searches. Two separate
indexes wouldn't work for that.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2002-06-25 22:03:03 PostgreSQL Cookbook update
Previous Message Josh Berkus 2002-06-25 20:09:25 Re: unique index on function and column