Re: How to copy tables between databases? - Mailing list pgsql-general

From Scott Marlowe
Subject Re: How to copy tables between databases?
Date
Msg-id dcc563d10802261300jbe0fdc3yf35afa7e482c60ed@mail.gmail.com
Whole thread Raw
In response to Re: How to copy tables between databases?  (Brad Nicholson <bnichols@ca.afilias.info>)
List pgsql-general
On Tue, Feb 26, 2008 at 2:36 PM, Brad Nicholson
<bnichols@ca.afilias.info> wrote:
> 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>

Starting around 8.2 you can have > 1 -t switch, and grab a table or a
wildcarded set of tables with each one.

pgsql-general by date:

Previous
From: Brad Nicholson
Date:
Subject: Re: How to copy tables between databases?
Next
From: Alvaro Herrera
Date:
Subject: Re: utf8 issue