Re: [HACKERS] Primary key requires SERIAL
| От | Thomas Lockhart |
|---|---|
| Тема | Re: [HACKERS] Primary key requires SERIAL |
| Дата | |
| Msg-id | 3834EEEE.DEE4EBD1@alumni.caltech.edu обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Primary key requires SERIAL (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: [HACKERS] Primary key requires SERIAL
|
| Список | pgsql-hackers |
> > >> > We currently only allow the words PRIMARY KEY on a SERIAL column.
> > 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.
You can, if you read carefully :)
The grammar allows *only* PRIMARY KEY on the SERIAL column
declaration, since the other keywords or clauses are either redundant
or nonsensical in the context of a serial column. As others have
pointed out, PRIMARY KEY is also allowed elsewhere.
- Thomas
--
Thomas Lockhart lockhart@alumni.caltech.edu
South Pasadena, California
В списке pgsql-hackers по дате отправления: