Re: pg_dump + serial + sequence problem - Mailing list pgsql-bugs

From Tom Lane
Subject Re: pg_dump + serial + sequence problem
Date
Msg-id 17580.1178818340@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump + serial + sequence problem  ("Luiz K. Matsumura" <luiz@planit.com.br>)
Responses Re: pg_dump + serial + sequence problem  ("Luiz K. Matsumura" <luiz@planit.com.br>)
List pgsql-bugs
"Luiz K. Matsumura" <luiz@planit.com.br> writes:
> CREATE TABLE teste
> (
>    id serial,
>    ...
> ALTER TABLE teste  ALTER COLUMN id DROP DEFAULT;

This isn't supported before 8.2, since as you found out pg_dump is
unable to reproduce the situation in the database --- the sequence is
still marked as "owned by" the column even though there's no default
anymore.  We aren't going to try to fix that behavior in the older
branches.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Luiz K. Matsumura"
Date:
Subject: pg_dump + serial + sequence problem
Next
From: "Luiz K. Matsumura"
Date:
Subject: Re: pg_dump + serial + sequence problem