Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6NDmJf61314 for ; Mon, 23 Jul 2001 09:48:19 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6MAVMa92790 for ; Sun, 22 Jul 2001 06:31:23 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f6MAEmv49076 for pgsql-sql@postgresql.org; Sun, 22 Jul 2001 06:14:48 -0400 (EDT) (envelope-from news) From: domingo@dad-it.com (Domingo Alvarez Duarte) X-Newsgroups: comp.databases.postgresql.sql Subject: unique index on more than one field using functions Date: 22 Jul 2001 03:14:46 -0700 Organization: http://groups.google.com/ Lines: 15 Message-ID: <70a76315.0107220214.2e699125@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-support@google.com To: pgsql-sql@postgresql.org X-Archive-Number: 200107/303 X-Sequence-Number: 4106 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 ?