Re: [SQL] UNIQUE constraint - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] UNIQUE constraint
Date
Msg-id 199909271855.OAA11656@candle.pha.pa.us
Whole thread Raw
In response to Re: [SQL] UNIQUE constraint  ("Mihai Barbos" <barbos@moon.ro>)
List pgsql-sql
[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,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [SQL] table aliasing problem with 6.5...
Next
From: Bruce Momjian
Date:
Subject: Re: [SQL] Inheritance and DELETE