Re: [INTERFACES] Data Migration

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Hiltibidal <rob(at)y2k(dot)state(dot)il(dot)us>, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Data Migration
Date: 1999-12-01 19:20:09
Message-ID: 384574E9.36258C4C@tm.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Tom Lane wrote:
>
> Robert Hiltibidal <rob(at)y2k(dot)state(dot)il(dot)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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Roderick A. Anderson 1999-12-01 20:29:12 Re: [INTERFACES] Data Migration
Previous Message Michael Katkin 1999-12-01 19:10:19 unsubscribe