pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: reina_ga@hotmail.com
To: pgsql-sql@postgresql.org
Subject: Re: best method to copy data across databases
Date: 2 Jul 2004 04:10:15 -0700
Message-ID: <272e4be7.0407020310.18785557@posting.google.com> (raw)
References: <46a31c4d.0407011942.37839bb0@posting.google.com>

ctrl@altonsys.com (ctrl) wrote in message news:<46a31c4d.0407011942.37839bb0@posting.google.com>...
> I need to copy data that I have on a table in one Postgres database
> into another table, on a different database. The destination table is
> not identical with the source table so I need to do some mapping
> between the 2 tables.
> What would be the best (and quickest) way to transfer the data? (there
> are over 500k rows)
> 
> thanks!

If the 2 tables have different arrangements, then I'm not sure if
there is a quick way. The safest way is probably to do a pg_dump
--attribute-inserts.



view thread (4+ messages)  latest in thread

Message-ID: <272e4be7.0407020310.18785557@posting.google.com>
Permalink:  ../272e4be7.0407020310.18785557@posting.google.com/
Also on:    postgresql.org/message-id/272e4be7.0407020310.18785557@posting.google.com

 · 

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: reina_ga@hotmail.com
  Subject: Re: best method to copy data across databases
  In-Reply-To: <272e4be7.0407020310.18785557@posting.google.com>

* 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