Re: export a schema / import as new schema - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: export a schema / import as new schema
Date
Msg-id 1250881211.4365.130.camel@jd-desktop.unknown.charter.com
Whole thread Raw
In response to export a schema / import as new schema  (David Kerr <dmk@mr-paradox.net>)
Responses Re: export a schema / import as new schema
List 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

pgsql-general by date:

Previous
From: "Boyd, Craig"
Date:
Subject: Re: Schema diff tool?
Next
From: Alvaro Herrera
Date:
Subject: Re: "Number of columns exceed limit" on a hierarchy of views