Re: Restoring db objects , help needed

From: Lonni J Friedman <netllama(at)gmail(dot)com>
To: Hugo Takada <htakada(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Restoring db objects , help needed
Date: 2005-03-07 17:54:04
Message-ID: 7c1574a905030709541eb06e09@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 7 Mar 2005 13:42:48 -0400, Hugo Takada <htakada(at)gmail(dot)com> wrote:
> hello,
>
> Is it possible to restore a DB Schema in a different schema but in the
> same Database? or restore the schema with a different name? or restore
> a set of objects into a different schema from where they were
> backed-up?

You can definitely restore a dump into a database with a different
name. Just specify the DB name in your pg_restore command. The same
should be the case for individual data objects and the schema itself.
Just use the -d option.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman netllama(at)gmail(dot)com
LlamaLand http://netllama.linux-sxs.org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rick Schumeyer 2005-03-07 18:00:36 postgresql vs mysql performance comparison
Previous Message Ioannis Theoharis 2005-03-07 17:47:23 Re: About Access paths