Re: Making serial survive pg_dump

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Making serial survive pg_dump
Дата
Msg-id 2285.1024024312@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Making serial survive pg_dump  ("Rod Taylor" <rbt@zort.ca>)
Список pgsql-hackers
"Rod Taylor" <rbt@zort.ca> writes:
>> What happens is the sequence is shared between several tables (eg.
>> invoice numbers or something)

> You cannot accomplish this situation by strictly using the SERIAL
> type.

But Chris is correct that there are borderline cases where we might
do the wrong thing if we're not careful.  The real question here,
I suspect, is what rules pg_dump will use to decide that it ought
to suppress a CREATE SEQUENCE command, DEFAULT clause, etc, in
favor of emitting a SERIAL column datatype.  In particular, ought it
to depend on looking at the form of the name of the sequence?
I can see arguments both ways on that...
        regards, tom lane


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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: First cut at SSL documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostGres Doubt