Search Postgresql Archives

pg_restore --schema always returns an empty dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux