Re: [HACKERS] Primary key requires SERIAL

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

> 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.

--
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 Jan Wieck 1999-11-19 04:27:07 Re: [HACKERS] psql & regress tests
Previous Message Bruce Momjian 1999-11-19 04:16:30 Re: [HACKERS] pg version date file