Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gLwAQ-0002Xt-JI for pgsql-general@arkaria.postgresql.org; Sun, 11 Nov 2018 20:17:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gLwAO-0005OW-Kp for pgsql-general@arkaria.postgresql.org; Sun, 11 Nov 2018 20:17:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gLwAN-0005OI-VO for pgsql-general@lists.postgresql.org; Sun, 11 Nov 2018 20:17:08 +0000 Received: from sonic305-4.consmr.mail.bf2.yahoo.com ([74.6.133.43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gLwAJ-0004u7-HT for pgsql-general@lists.postgresql.org; Sun, 11 Nov 2018 20:17:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1541967421; bh=YZPlVn+KmWekmQHxMz6hBnTLTEchzoa0eKdzv9UINJg=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=R5nHP1hlmkBbrAQdnNAwbIOMfsKiORTlRUDqwiJm2EUCcyMbYmKHJpunyqM36T1UsMsFyFVx2b/QEazEfX1+ZJj8rEEzZdeI/QWpuHDPyeuljaxND673MYRCa8ePOFveCoslaNB3tfg+gDIlMTd6S+ZOomwXBH5cEN06bmtDtA6V5snHIreW7HmIljLuiKt2gtcCU/gu1E8UOt/rTIe2DyfGfov77l2OU/VRZNGBJ3+I2UZJTrED6PW891g6sOtxU3JEiLrbdMj7CLSTENIC3g8rlXtZQA6fTLr9x0x4leO+LUhrcnNxtiQvWC0VM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ic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sun, 11 Nov 2018 20:17:01 +0000 Date: Sun, 11 Nov 2018 20:16:58 +0000 (UTC) From: Ravi Krishna To: fbachmann.public@gmail.com, pgsql-general@lists.postgresql.org Message-ID: <733706689.555193.1541967418547@mail.yahoo.com> In-Reply-To: References: <277119983.568633.1541093278753.ref@mail.yahoo.com> <277119983.568633.1541093278753@mail.yahoo.com> Subject: Re: Copy data from DB2 (Linux) to PG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.12732 aolwebmail Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Content-Length: 801 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >Haven't tried it myself, but you may be able to connect the DB2 database= =20 >to your PostgreSQL cluster using this FDW module:=20 >https://github.com/wolfgangbrandl/db2_fdw >Looks like db2_fdw is DB2 LUW only though, so you might be out of luck=20 >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=C2=A0 statements to do the = ETL=20 >process with the necessary type conversions and whatnot. I am currently using Unix pipes to export data from DB2 and concurrently lo= ad it to PG via COPY. It saves nearly half the time of exporting first to file and then loading i= t.