From: domingo@dad-it.com
To: pgsql-sql@postgresql.org
Subject: unique index on more than one field using functions
Date: 22 Jul 2001 03:14:46 -0700
Message-ID: <70a76315.0107220214.2e699125@posting.google.com> (raw)
I'm trying create a unique index using more than one field and
applying a function in one field to achieve case insensitive
uniqueness but postgresql doesn't accept.
create table a(
id int primary key,
id2 int not null,
name varchar(50),
unique(id2, lower(name))
);
Anyone have an idea ?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: domingo@dad-it.com
Subject: Re: unique index on more than one field using functions
In-Reply-To: <70a76315.0107220214.2e699125@posting.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox