Re: export a schema / import as new schema

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: David Kerr <dmk(at)mr-paradox(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: export a schema / import as new schema
Date: 2009-08-21 19:00:11
Message-ID: 1250881211.4365.130.camel@jd-desktop.unknown.charter.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2009-08-21 at 11:56 -0700, David Kerr wrote:
> Is there an easy way, that I'm missing, where I can export a schema from
> database A and then rename it on load into database B?

pg_dump -s foo|psql bar

>
> I use similar functionality in oracle all the time and it's great for
> development environments when you're making schema changes or updating a
> lot of data. You can mess up schema A and load a backup into schema B
> and fix the data (or whatever).
>
> Thanks
>
> Dave
>
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Archibald Zimonyi 2009-08-21 19:12:03 Re: Questions about encoding between two databases
Previous Message Alvaro Herrera 2009-08-21 19:00:02 Re: "Number of columns exceed limit" on a hierarchy of views