pg_restore --schema always returns an empty dump - Mailing list pgsql-general

From Nick Johnson
Subject pg_restore --schema always returns an empty dump
Date
Msg-id 443D68BD.8000406@notdot.net
Whole thread Raw
Responses Re: pg_restore --schema always returns an empty dump  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
If I create a complete database dump in custom or tar format, with a
command like the following:
pg_dump -Fc dbname > db.dump

using "pg_restore db.dump", as expected, returns the entire dump.
However, "pg_restore --schema foo db.dump", where 'foo' is the name of a
schema present in the database dump always returns an empty dump.
"pg_restore --schema foo --table bar" returns the table foo.bar, though.

Does anyone know why this is?

-Nick

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: "Hidden" field for each column
Next
From: "codeWarrior"
Date:
Subject: Re: Evaluating client processes vs stored procedures