Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8Qk8-0003OC-58 for pgsql-general@arkaria.postgresql.org; Fri, 05 Oct 2018 14:06:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g8Qk6-0004gy-A6 for pgsql-general@arkaria.postgresql.org; Fri, 05 Oct 2018 14:06:10 +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 1g8Qk5-0004gl-RY for pgsql-general@lists.postgresql.org; Fri, 05 Oct 2018 14:06:10 +0000 Received: from sonic309-24.consmr.mail.ir2.yahoo.com ([77.238.179.82]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8Qk1-0006H7-ST for pgsql-general@lists.postgresql.org; Fri, 05 Oct 2018 14:06:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1538748363; bh=7D5xe4tlyv58F1AOoDN7tC4LwZ0mliIQ1Xq3yjiSBqI=; h=From:Subject:Date:In-Reply-To:Cc:References:From:Subject; b=SdCs8OqpwHA9QHCEMLbqkq2E+w0zssWl1nU21HyBuz5JslN4uSBmMjKg1scCUQxBwN5uAxAvaVznRd42lPIoJj/bqelwe3tzGBRYiFaC6jfitLufGnOWmKCFFc5o57tbYDlJ/b1n6RVBByyLdMbB7FWLeNPrzOut4DvGcQN7HjrtCrRG8Tj09PzSLrtaCT4gjqA+0YIdQ1QfF/Q7Laf/+BDEKU7U16o9/QpX1+eb7RoP89j+3tXPi20pu7p0nFn1gA9fuSLHiUWIiMXCxG8QLl2cWJ4k3pkYVl32Gj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C1XPPTIDTufhOIEtcpnR9PNoi5.rcqw9NdKSPfRqNQX0Y5ULQw0r rYU_OX3MRUeC3Bd0HJS3D48M2cbebq57SQXC8IIes Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Fri, 5 Oct 2018 14:06:03 +0000 Received: from 165.225.39.58 (EHLO [192.168.1.55]) ([165.225.39.58]) by smtp417.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 60aa230cced027cb767f9e41a2db4b5e for ; Fri, 05 Oct 2018 14:06:00 +0000 (UTC) From: Ravi Krishna Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: COPY from a remote machine in Datastage Date: Fri, 5 Oct 2018 10:05:56 -0400 In-Reply-To: Cc: "pgsql-generallists.postgresql.org" References: <1538733298001-0.post@n3.nabble.com> <68fdc7e7-3a29-ef03-fe5c-5971e357788c@portavita.eu> Message-Id: X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk We are doing a POC of using Datastage with PG using ODBC. =20 Problem to solve: How to load a large CSV file using COPY command. The = file is on the client machine. A typical SQL syntax of a copy coming from a remote machine COPY TABLE = FROM STDIN WITH CSV HEADER Question is, how to make the contents of the file available as STDIN in = a SQL. It is easy in a shell.=