Re: How to move data from 1 database to another?

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to move data from 1 database to another?
Date: 2004-05-11 16:44:35
Message-ID: 20040511184435.B642@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Actually, the database db2 has all ready been created, plus the table names
> are the same, so I can not use pg_dump and restore.
Sure you can:

dropdb db2
createdb db2 ...
> >pg_dump -d db1 -t table1 |psql db2

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Bartlett 2004-05-11 16:54:02 Re: How to move data from 1 database to another?
Previous Message scott.marlowe 2004-05-11 16:42:28 Re: How to move data from 1 database to another?