Re: Copy data from DB2 (Linux) to PG

From: Ravi Krishna <srkrishna1(at)aol(dot)com>
To: fbachmann(dot)public(at)gmail(dot)com, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Copy data from DB2 (Linux) to PG
Date: 2018-11-11 20:16:58
Message-ID: 733706689.555193.1541967418547@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2018-11-11 20:18:19 Re: Move cluster to new host, upgraded version
Previous Message Rich Shepard 2018-11-11 20:16:23 Re: Move cluster to new host, upgraded version