Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 738D2632377 for ; Sun, 31 Jan 2010 17:08:01 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 53014-01 for ; Sun, 31 Jan 2010 21:07:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id A336563293F for ; Sun, 31 Jan 2010 17:07:50 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o0VL7kLC016295; Sun, 31 Jan 2010 16:07:46 -0500 (EST) To: Andreas cc: Joshua Tolley , pgsql-sql@postgresql.org Subject: Re: Howto have a unique restraint on UPPER (textfield) In-reply-to: <4B65EC9C.6000606@gmx.net> References: <4B64EA46.60605@gmx.net> <4b64f184.9613f30a.5d13.01b2@mx.google.com> <4B65EC9C.6000606@gmx.net> Comments: In-reply-to Andreas message dated "Sun, 31 Jan 2010 21:48:28 +0100" Date: Sun, 31 Jan 2010 16:07:46 -0500 Message-ID: <16294.1264972066@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.464 tagged_above=-10 required=5 tests=AWL=0.135, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/55 X-Sequence-Number: 33591 Andreas writes: > So I had the missconception that UNIQUE (...) within CREATE TABLE (...) > was actually just an shorter way to define a unique index which it is not. Well, it is that --- it just doesn't provide access to all the features that CREATE INDEX does. regards, tom lane