Re: psql schemas - Mailing list pgsql-admin

From Peter Koczan
Subject Re: psql schemas
Date
Msg-id 4544e0330711050939i586246caodbbd17c044a6939b@mail.gmail.com
Whole thread Raw
List pgsql-admin

I had a file with name "dump_live" which contains all the dump using "pg_dumpall > dump_live". Now, I need to restore it to another schema "schema2". How can I restore the data from that file to specified empty schema2. (This schema is created with out any objects). Pls advice me how to handle.

You dumped the entire database cluster...data, schema definitions, user/group data, etc. You're going to have to specify options for dumping and restoring data to do what you wish. This is well-documented in the list archives, the website, man pages, and many, many other places. Please read them.

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error Migrating From 7.4 to 8.2.5
Next
From: "Peter Koczan"
Date:
Subject: Re: Postgresql pg_dumpall