Re: Restoring db objects , help needed

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

Hi ,
thanks for the advice, I checked the pg_restore command and I can
restore individual objects to different databases, but what I'm trying
to do is to restore a schema X renamed to schema B in the same
database, when I restore the db object it always restores it to the
original schema, is it possible to restore the object to a different
schema in the same database?

thanks

Hugo

On Mon, 7 Mar 2005 09:54:04 -0800, Lonni J Friedman <netllama(at)gmail(dot)com> wrote:
> 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 Sim Zacks 2005-03-08 11:53:04 Re: iterate over refcursor
Previous Message Martijn van Oosterhout 2005-03-08 11:29:01 Re: problem with distinct rows