From: Hannu Krosing <hannu@tm.ee>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Hiltibidal <rob@y2k.state.il.us>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Data Migration
Date: Wed, 01 Dec 1999 21:20:09 +0200
Message-ID: <384574E9.36258C4C@tm.ee> (raw)
References: <24897.944066140@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: hannu@tm.ee, tgl@sss.pgh.pa.us, rob@y2k.state.il.us
Subject: Re: [INTERFACES] Data Migration
In-Reply-To: <384574E9.36258C4C@tm.ee>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox