Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id PAA12777 for ; Mon, 27 Sep 1999 15:02:10 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id OAA11656; Mon, 27 Sep 1999 14:55:13 -0400 (EDT) From: Bruce Momjian Message-Id: <199909271855.OAA11656@candle.pha.pa.us> Subject: Re: [SQL] UNIQUE constraint In-Reply-To: <000201beed47$f7dbf140$4a8823d4@gigell> from Mihai Barbos at "Aug 21, 1999 06:01:02 pm" To: Mihai Barbos Date: Mon, 27 Sep 1999 14:55:13 -0400 (EDT) CC: Tom Lane , pgsql-sql@hub.org X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit [Charset iso-8859-1 unsupported, filtering to ASCII...] > My fault, the correct situation is > create table TEST ( > testkey something PRIMARY KEY, > testval something UNIQUE, > ..................... > ); > > PRIMARY KEY works OK, but UNIQUE is ignored. This is now fixed. create table TEST ( testkey int PRIMARY KEY, testval int UNIQUE ); NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index 'test_pkey' for table 'test' NOTICE: CREATE TABLE/UNIQUE will create implicit index 'test_testval_key' for table 'test' CREATE -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026