Re: [INTERFACES] Data Migration - Mailing list pgsql-interfaces

From Hannu Krosing
Subject Re: [INTERFACES] Data Migration
Date
Msg-id 384574E9.36258C4C@tm.ee
Whole thread Raw
In response to Re: [INTERFACES] Data Migration  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Tom Lane wrote:
> 
> Robert Hiltibidal <rob@y2k.state.il.us> writes:
> > I have unique tables in crossover i want to migrate over to crbak. Can this
> > be done thru SQL?
> 
> No; in Postgres, different databases are different universes ... and
> there are no wormholes in SQL ;-).
> 
> Use pg_dump with -t to dump out the table(s) you want from the one
> database, and then load the resulting script into the other.

You can do it in one shot like this:

pg_dump -t unique_table crossover | psql crbak

-------------------
Hannu


pgsql-interfaces by date:

Previous
From: Michael Katkin
Date:
Subject: unsubscribe
Next
From: "Roderick A. Anderson"
Date:
Subject: Re: [INTERFACES] Data Migration