Re: How to copy tables between databases?

From: Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>
To: Kynn Jones <kynnjo(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to copy tables between databases?
Date: 2008-02-26 20:36:38
Message-ID: 1204058198.5581.22.camel@bnicholson-desktop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2008-02-26 at 15:19 -0500, Kynn Jones wrote:
>
> Is there a simple way to copy a table from one database to another
> without generating an intermediate dump file?
>

pg_dump -t <table name> <source DB> | psql -d <target DB>
--
Brad Nicholson 416-673-4106
Database Administrator, Afilias Canada Corp.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Uwe C. Schroeder 2008-02-26 20:41:05 Re: How to copy tables between databases?
Previous Message Dawid Kuroczko 2008-02-26 20:33:34 Re: How to copy tables between databases?