Re: how to copy table to another database?

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Yudie <yudie(at)axiontech(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to copy table to another database?
Date: 2003-07-18 20:58:48
Message-ID: Pine.LNX.4.33.0307181457570.2787-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 18 Jul 2003, Yudie wrote:

> Hi,
> Anyone know how the procedure or commands to copy table to another database.
> or querying from another database if possible?

If you want to copy a table from one db to another, you can use this:

pg_dump dbname -t tablename |psql dbname -e

If you want cross database queries, look in the /contrib/dblink dir in the
tarball of postgresql

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Dmitry Tkach 2003-07-18 21:06:54 Re: how to copy table to another database?
Previous Message Yudie 2003-07-18 20:47:13 how to copy table to another database?