From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Mihai Barbos <barbos@moon.ro>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] UNIQUE constraint
Date: Mon, 27 Sep 1999 14:55:13 -0400 (EDT)
Message-ID: <199909271855.OAA11656@candle.pha.pa.us> (raw)
In-Reply-To: <000201beed47$f7dbf140$4a8823d4@gigell>
[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
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: maillist@candle.pha.pa.us, barbos@moon.ro, tgl@sss.pgh.pa.us, pgsql-sql@hub.org
Subject: Re: [SQL] UNIQUE constraint
In-Reply-To: <199909271855.OAA11656@candle.pha.pa.us>
* 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