Re: Export Data from one DB and Import into a new DB

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Export Data from one DB and Import into a new DB
Date: 2009-05-01 11:12:38
Message-ID: gtelf6$ksp$5@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2009-04-29, Stefan Sturm <stefan(dot)s(dot)sturm(at)googlemail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2009-05-01 11:13:50 Re: Any way to execute ad-hoc pl/pgsql?
Previous Message Chris Spotts 2009-05-01 11:12:31 Re: ERROR: syntax error at or near "IF"... why?