From: Peter Koczan <pjkoczan@gmail.com>
To: Suresh Gupta VG <suresh.g@zensar.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: psql schemas
Date: Mon, 5 Nov 2007 11:39:26 -0600
Message-ID: <4544e0330711050939i586246caodbbd17c044a6939b@mail.gmail.com> (raw)
In-Reply-To: <3D5445983859B84B92669C0D883EA6FB0AF4AE01@ZENMAILHQ1.ind.zensar.com>
References: <3D5445983859B84B92669C0D883EA6FB0AF4AE01@ZENMAILHQ1.ind.zensar.com>
>
> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: pjkoczan@gmail.com, suresh.g@zensar.com
Subject: Re: psql schemas
In-Reply-To: <4544e0330711050939i586246caodbbd17c044a6939b@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox