Re: Sequences/defaults and pg_dump

Поиск
Список
Период
Сортировка
От Nikolay Samokhvalov
Тема Re: Sequences/defaults and pg_dump
Дата
Msg-id e431ff4c0602070819l356376d8wa7f5912956a72ffd@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Sequences/defaults and pg_dump  ("John D. Burger" <john@mitre.org>)
Список pgsql-general
There is no SERIAL type in the standard at all. Moreover, standard
defines following expression for SEQUENCE GENERATORs:

<next value expression> ::= NEXT VALUE FOR <sequence generator name>

Postgres has non-standard equivalent - nextval(<sequence generator name>)...

So, sequences implementation in PostgreSQL isn't standard-compliant.

On 2/7/06, John D. Burger <john@mitre.org> wrote:
> Tom Lane wrote:
>
> > The correct solution to this is to forbid ALTER COLUMN SET DEFAULT on
> > a serial column, but we haven't gotten around to enforcing that yet.
>
> Is this per the Standard?  If so, then the oft-repeated mantra that
> SERIAL is simply a macro for an INTEGER column with a particular
> DEFAULT seems a bit misleading ...
>
> - John D. Burger
>    MITRE
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq
>


--
Best regards,
Nikolay

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sequences/defaults and pg_dump
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Syncing Databases Weekly