Re: [GENERAL] just little BUG - Mailing list pgsql-general

From Jonathan davis
Subject Re: [GENERAL] just little BUG
Date
Msg-id 000c01bec9df$3704bd20$0601a8c0@kosovo.idianet.net
Whole thread Raw
Responses Re: [GENERAL] just little BUG
List pgsql-general

>[Charset iso-8859-1 unsupported, filtering to ASCII...]
>> hello all
>>
>> normaly a UNIQUE PRIMARY KEY is unique but
>> when you use a heritage, you can insert a duplicate key !!!!
>
>I assume you mean inheritance.
>
>Can you send us a little test sample please?
>
>--
hello all

this is the problem:

example:

test=> CREATE TABLE MAN(name char(10) UNIQUE PRIMARY KEY);T

test=> CREATE TABLE PROFESSOR(scool char(20))INHERITS(MAN);

test=> INSERT INTO PROFESSOR(name) VALUES('DAVIS');
INSERT 54424 1

test=> INSERT INTO PROFESSOR(name) VALUES('DAVIS');
INSERT 54425 1








pgsql-general by date:

Previous
From: Jim Archer
Date:
Subject: getting val of serial field after insert
Next
From: Christian Rudow
Date:
Subject: Re: [GENERAL] getting val of serial field after insert