Re: [HACKERS] Primary key requires SERIAL

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Don Baccus <dhogaza(at)pacifier(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Primary key requires SERIAL
Date: 1999-11-19 04:58:19
Message-ID: 199911190458.XAA25578@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> At 11:19 PM 11/18/99 -0500, Bruce Momjian wrote:
> >> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> > We currently only allow the words PRIMARY KEY on a SERIAL column.
> >>
> >> Say what? There are ColConstraintElem and ConstraintElem productions
> >> for PRIMARY KEY ... are they broken?
> >>
> >> regards, tom lane
> >>
> >
> >Oh, I see it now. The grammer seems to only support it in SERIAL, but I
> >see it works now. I guess i am surprised SERIAL PRIMARY creates the
> >index and sequence, while INTEGER PRIMARY only creates the index.
>
> Oops, I guess I blew it by responding to a post by Bruce assuming he
> was right.

Seems I can't realy on understanding what we support by just looking at
gram.y.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-11-19 05:40:02 Re: [HACKERS] Getting OID in psql of recent insert
Previous Message Aaron J. Seigo 1999-11-19 04:48:54 Re: [HACKERS] Getting OID in psql of recent insert