Re: Re : pg_dump SERIAL and SEQUENCE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re : pg_dump SERIAL and SEQUENCE
Дата
Msg-id 27886.1192737745@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re : pg_dump SERIAL and SEQUENCE  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Laurent ROCHE wrote:
>> Yep, of course but what's the situation for people using 8.1 and
>> pg_dump that does not generate code with SERIAL ?

> They grab 8.2's pg_dump and connect with it to their 8.1 server, to
> generate a dump that does.

Actually, I bet the OP's problem is exactly that he did that already.
8.1 pg_dump *will* generate a SERIAL column definition, if it sees
that the table being dumped was made that way.  8.2 prefers the OWNED BY
route (for good reasons btw).

            regards, tom lane

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

Предыдущее
От: Ralph Smith
Дата:
Сообщение: Did pg_dumpall and imported, NEED TO START OVER
Следующее
От: Jeff Lanzarotta
Дата:
Сообщение: Re: Group By question