"Luiz K. Matsumura" <luiz(at)planit(dot)com(dot)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