Re: Export Data from one DB and Import into a new DB - Mailing list pgsql-general

From Jasen Betts
Subject Re: Export Data from one DB and Import into a new DB
Date
Msg-id gtelf6$ksp$5@reversiblemaps.ath.cx
Whole thread Raw
In response to Export Data from one DB and Import into a new DB  (Stefan Sturm <stefan.s.sturm@googlemail.com>)
List pgsql-general
On 2009-04-29, Stefan Sturm <stefan.s.sturm@googlemail.com> wrote:
> Hello,
>
> we are changing the structure of our database from a new release.
> Now we need to export large amounts of data and import it into the new
> db( with a new structure).
>
> Are there any tools( for osx ) to support me doing this?

last time I had to convert a database I loaded it into postgres and
used "SQL" and plpgsql functions.

then dropped the functions, columns and tables  I didn't want to keep around.

things like

 INSERT INTO somenewtable SELECT somequery...

are very powerfull tools

The hardest bit was dealing with the inconsistencies in the input data.

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Any way to execute ad-hoc pl/pgsql?
Next
From: Jasen Betts
Date:
Subject: Re: Mapping output from a SEQUENCE into something non-repeating/colliding but random-looking?