Re: [HACKERS] sequence creation

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] sequence creation
Дата
Msg-id 199808190235.WAA03846@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] sequence creation  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
Список pgsql-hackers
> > Right now, we allow PRIMARY to auto-create an index.
> > Can we have something to auto-create sequences, instead of the more
> > complicated CREATE SEQUENCE process.
> > Perhaps use the data type SERIAL to autocreate a sequence.  Should
> > make life easier for novices.  We are getting too many sequence
> > questions.
>
> That would be possible. I'd be happier doing it for v6.5, since I'm
> hoping to work on docs in the meantime. Of course, maybe it would be
> easy :)
>
> What should the syntax be exactly?
>
>   CREATE TABLE t (s SERIAL);
>
> or
>
>   CREATE TABLE t (i INT DEFAULT SERIAL);
>
> or ??
>
> Are there alternate syntaxes from other DBs which should be considered?

Can't be that hard.  I like the first one myself, and it matches
Informix.


--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: New Developer's FAQ item
Следующее
От: Brook Milligan
Дата:
Сообщение: Re: [HACKERS] New Developer's FAQ item