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

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Kynn Jones" <kynnjo(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-18 20:08:02
Message-ID: dcc563d10806181308jffcc11esa2dedfa59ea51e11@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave Lee 2008-06-18 20:10:30 Re: migrating from mysql: need to convert empty string to null
Previous Message Scott Marlowe 2008-06-18 20:06:47 Re: RETURNING clause in 8.2