Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIGlO-0006q8-8B for pgsql-general@arkaria.postgresql.org; Thu, 01 Nov 2018 17:28: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 1gIGlM-00046j-EP for pgsql-general@arkaria.postgresql.org; Thu, 01 Nov 2018 17:28:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIGlL-00046S-OL for pgsql-general@lists.postgresql.org; Thu, 01 Nov 2018 17:28:08 +0000 Received: from sonic313-14.consmr.mail.bf2.yahoo.com ([74.6.133.124]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIGlI-000615-Lp for pgsql-general@lists.postgresql.org; Thu, 01 Nov 2018 17:28:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1541093281; bh=Qk2rL6SveGAPb3J6PgJteTMTr+y2tnvoQnlAD1YhGLU=; h=Date:From:To:Subject:References:From:Subject; b=JBoYnmTSIE2X2C/CM22SHqHn/rkqZwmj5bLfQCHawrwLFbUZtmbSTd70l2fkExXK11BZHg1BQl5rXDRYnfQashNmJrXYWClDeJKLcwnkh/u+cAsjWgKG6pDU8di401XbX671PuCemOYA7CxfyzTOWbUB5hc85nNDsGMB/3sQKcVcV0kbsAFfFy+jMgeXbxDY/cIw+l1HfOrJDpyOHZYfHRL5RO9AiDfM+KDGqrANHY49aNfQRzz3kO06T4xZZ9EC+2h5IDiuCXrJeYA2INF1u1wH8Utl1p1HgjOxyHExiwJBWVM2TpzthCgw/U8M0DTKZ+ZOQJ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.mail.bf2.yahoo.com with HTTP; Thu, 1 Nov 2018 17:28:01 +0000 Date: Thu, 1 Nov 2018 17:27:58 +0000 (UTC) From: Ravi Krishna To: pgsql-general@lists.postgresql.org Message-ID: <277119983.568633.1541093278753@mail.yahoo.com> Subject: Copy data from DB2 (Linux) to PG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <277119983.568633.1541093278753.ref@mail.yahoo.com> X-Mailer: WebService/1.1.12692 aolwebmail Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 Content-Length: 582 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.