Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Why do you do that? It seems much easier to produce a complete dump,
> then obtain the --list from it, do "grep -v" of the TABLE DATA element
> for that table, then give that file to pg_restore. It would restore
> everything in the right order, including that table's definition, but
> excluding that table's data.
Yeah, it's clearly possible to dodge the issue by using a different
dump/restore procedure. Still, this procedure is not obviously
incorrect, so it'd be nice if pg_restore coped better.
regards, tom lane