Re: [HACKERS] Primary key requires SERIAL

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Primary key requires SERIAL
Дата
Msg-id 199911190419.XAA24590@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Primary key requires SERIAL  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Primary key requires SERIAL  (Don Baccus <dhogaza@pacifier.com>)
Список pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.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@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] pg version date file
Следующее
От: wieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: [HACKERS] psql & regress tests