Re: Easiest way to copy table from one db to another?

From: "Kynn Jones" <kynnjo(at)gmail(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: "pgsql-general General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Easiest way to copy table from one db to another?
Date: 2008-06-20 12:46:56
Message-ID: c2350ba40806200546t4f4d90dey1eeff1fe89fa1395@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 18, 2008 at 4:08 PM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
wrote:

> On Wed, Jun 18, 2008 at 1:48 PM, Kynn Jones <kynnjo(at)gmail(dot)com> wrote:
> >
> >
> > What's the simplest way to copy a table from one database to another one
> > running on the same server?
>
> Easiest way to me:
>
> pg_dump -t tablename dbname | psql otherdbname
>

Thanks!
Kynn

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Igor Neyman 2008-06-20 13:18:48 Re: A plpgsql unidentifiable problem.
Previous Message Hermann Muster 2008-06-20 12:37:46 Connection to second database on server