standard IDENTITY support (Was: Re: SERIAL type not autoincremented)

From: Markus Bertheau <twanger(at)bluetwanger(dot)de>
To: teknet(at)poczta(dot)onet(dot)pl
Cc: pgsql-admin(at)postgresql(dot)org
Subject: standard IDENTITY support (Was: Re: SERIAL type not autoincremented)
Date: 2004-07-04 23:42:35
Message-ID: 1088984555.2767.16.camel@teetnang
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

В Птн, 02.07.2004, в 19:22, teknet(at)poczta(dot)onet(dot)pl пишет:
> Hello
> i have:
> create table student(
> id SERIAL NOT NULL,
> name VARCHAR(35) NOT NULL,
> primary key (id)
> );
>
> and when i try to insert like this:
> insert into student (name) values('me');
> i receive error:
> ERROR: duplicate key violates unique constraint "student_pkey"

Is this scenario possible in standard SQL identity columns? From what I
read here[1], a standard IDENTITY column can guarantee successful
insertion of a unique key. Is there similar support planned for
PostgreSQL?

Thanks.

--
Markus Bertheau <twanger(at)bluetwanger(dot)de>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Aryan Ariel Rodriguez Chalas 2004-07-05 03:45:59 Losing my database connection
Previous Message Adam Smith 2004-07-04 08:54:26 Re: Is this a "Stupid Question" ?