I wrote:
> The definitional question is: if we selected only the sequence to dump,
> do we want that ALTER command to appear in the output or not? It's a
> reasonably straightforward fix either way (a bit easier for "not"),
> but I'm unsure which is the most useful behavior.
There doesn't seem to be any strong opinion out there one way or the
other, so I'll fix it the easier way: the ALTER OWNED BY will only
appear if both the table and the sequence are selected to be dumped.
regards, tom lane