pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
Cc: Pgsql-sql@postgresql.org, Pgsql-General <pgsql-general@postgresql.org>
Subject: Re: How do I copy part of table from db1 to db2 (and rename the columns)?
Date: Wed, 31 Aug 2005 12:40:11 +0200
Message-ID: <20050831104011.GB74859@isis.sigpipe.cz> (raw)
In-Reply-To: <1125482430.9456.6.camel@Panoramix>
References: <1125482430.9456.6.camel@Panoramix>

# J.Kraaijeveld@Askesis.nl / 2005-08-31 12:00:30 +0200:
> I want to copy several columns of a source table from db1 to db2, and
> create the target table and rename the columns in the process. 
> 
> Is that possible in PostgresQL? If so, an example or url for such a
> command /script would be appreciated...

    check these man pages: pg_dump(1), pg_restore(1), alter_table(7)

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991



view thread (11+ messages)  latest in thread

Message-ID: <20050831104011.GB74859@isis.sigpipe.cz>
Permalink:  ../20050831104011.GB74859@isis.sigpipe.cz/
Also on:    postgresql.org/message-id/20050831104011.GB74859@isis.sigpipe.cz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: neuhauser@sigpipe.cz, J.Kraaijeveld@Askesis.nl, pgsql-general@postgresql.org
  Subject: Re: How do I copy part of table from db1 to db2 (and rename the columns)?
  In-Reply-To: <20050831104011.GB74859@isis.sigpipe.cz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox