Re: Re : pg_dump SERIAL and SEQUENCE - Mailing list pgsql-general

From Tom Lane
Subject Re: Re : pg_dump SERIAL and SEQUENCE
Date
Msg-id 27886.1192737745@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re : pg_dump SERIAL and SEQUENCE  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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 by date:

Previous
From: Ralph Smith
Date:
Subject: Did pg_dumpall and imported, NEED TO START OVER
Next
From: Jeff Lanzarotta
Date:
Subject: Re: Group By question