pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <srkrishna1@aol.com>
To: pgsql-general@lists.postgresql.org
Subject: Copy data from DB2 (Linux) to PG
Date: Thu, 1 Nov 2018 17:27:58 +0000 (UTC)
Message-ID: <277119983.568633.1541093278753@mail.yahoo.com> (raw)
References: <277119983.568633.1541093278753.ref@mail.yahoo.com>

I have a project to develop a script/tool to copy data from DB2 to PG.  The approach I am thinking is

1. Export data from db2 in a text file, with, say pipe as delimiter.
2. Load the data from the text file to PG using COPY command.

In order to make it faster I can parallelize export and load with upto X number of tables concurrently.

Is there a tool in which I can avoid first exporting and then loading.  I think one way I can do it is by
using pipes by which I can export from db2 to a pipe and simultaneously load it to PG using COPY.

Any other tool for this job?

thanks.




view thread (7+ messages)  latest in thread

Message-ID: <277119983.568633.1541093278753@mail.yahoo.com>
Permalink:  ../277119983.568633.1541093278753@mail.yahoo.com/
Also on:    postgresql.org/message-id/277119983.568633.1541093278753@mail.yahoo.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 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-general@postgresql.org
  Cc: srkrishna1@aol.com
  Subject: Re: Copy data from DB2 (Linux) to PG
  In-Reply-To: <277119983.568633.1541093278753@mail.yahoo.com>
  References: <277119983.568633.1541093278753.ref@mail.yahoo.com> <277119983.568633.1541093278753@mail.yahoo.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