pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Sistemas C.M.P. <sistemascmp@redynet4.com.ar>
Cc: pgsql-admin@postgresql.org
Subject: Re: Copy to another server
Date: Fri, 29 Sep 2006 21:56:41 -0500
Message-ID: <20060930025641.GA8973@wolff.to> (raw)
In-Reply-To: <002e01c6e3cc$fa0e1be0$0d01a8c0@pcsistemas>
References: <002e01c6e3cc$fa0e1be0$0d01a8c0@pcsistemas>

On Fri, Sep 29, 2006 at 10:41:33 -0300,
  "Sistemas C.M.P." <sistemascmp@redynet4.com.ar> wrote:
> I need to select a group of records in one table, and then copy this group to similar table in another database and another server.
> How can I do this?

Long at using the dblink contrib module. If that isn't available
to you, then you can select the data into a temp table and use copy
to produce csv output (in 8.2 you will be able to skip the temp table
step) and then import the csv file into the other database.



view thread (2+ messages)

Message-ID: <20060930025641.GA8973@wolff.to>
Permalink:  ../20060930025641.GA8973@wolff.to/
Also on:    postgresql.org/message-id/20060930025641.GA8973@wolff.to

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno@wolff.to, sistemascmp@redynet4.com.ar
  Subject: Re: Copy to another server
  In-Reply-To: <20060930025641.GA8973@wolff.to>
  References: <002e01c6e3cc$fa0e1be0$0d01a8c0@pcsistemas> <20060930025641.GA8973@wolff.to>

* 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