From: Ravi Krishna <srkrishna1@aol.com>
To: fbachmann.public@gmail.com
To: pgsql-general@lists.postgresql.org
Subject: Re: Copy data from DB2 (Linux) to PG
Date: Sun, 11 Nov 2018 20:16:58 +0000 (UTC)
Message-ID: <733706689.555193.1541967418547@mail.yahoo.com> (raw)
In-Reply-To: <c0c0e5e9-fbe6-fc3a-a1e4-77c2bf3b53cc@gmail.com>
References: <277119983.568633.1541093278753.ref@mail.yahoo.com>
<277119983.568633.1541093278753@mail.yahoo.com>
<c0c0e5e9-fbe6-fc3a-a1e4-77c2bf3b53cc@gmail.com>
>Haven't tried it myself, but you may be able to connect the DB2 database
>to your PostgreSQL cluster using this FDW module:
>https://github.com/wolfgangbrandl/db2_fdw
>Looks like db2_fdw is DB2 LUW only though, so you might be out of luck
>if your DB2 is on IBM i (or z ;-)
As the thread indicates, I am using DB2 Linux.
I used Carto one with ODBC and it is just not production ready. Found two bugs within days of
testing. I have created bugs in the github.
>Then you could just use INSERT INTO ... SELECTÂ statements to do the ETL
>process with the necessary type conversions and whatnot.
I am currently using Unix pipes to export data from DB2 and concurrently load it to PG via COPY.
It saves nearly half the time of exporting first to file and then loading it.
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, fbachmann.public@gmail.com
Subject: Re: Copy data from DB2 (Linux) to PG
In-Reply-To: <733706689.555193.1541967418547@mail.yahoo.com>
References: <277119983.568633.1541093278753.ref@mail.yahoo.com> <277119983.568633.1541093278753@mail.yahoo.com> <c0c0e5e9-fbe6-fc3a-a1e4-77c2bf3b53cc@gmail.com> <733706689.555193.1541967418547@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