Re: pg_dump vs schemas

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: Francisco Reyes <lists(at)stringsutils(dot)com>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_dump vs schemas
Date: 2007-07-14 01:06:36
Message-ID: 4984456D-8DCA-4B2A-8911-93AA39AA6194@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jul 13, 2007, at 19:10 , Francisco Reyes wrote:

> Alternatively is there any easy way to take all data in one schema
> and load it into a target DB and a different schema?

You might try using the -n flag with pg_dump, replace schema1 with
schema2 in the dump file, and loading the altered dump into the new
database. There may also be some tricks you can play with pg_restore
(on a dump file created with pg_dump -Fc), though I don't know
specifically what offhand.

Michael Glaesemann
grzm seespotcode net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Madison Kelly 2007-07-14 01:39:31 PostgreSQL equivelant of this MySQL query
Previous Message Tom Allison 2007-07-14 00:59:39 Re: multirow insert