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 1g8Qwd-00041G-5o for pgsql-general@arkaria.postgresql.org; Fri, 05 Oct 2018 14:19:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g8Qwb-0003On-I4 for pgsql-general@arkaria.postgresql.org; Fri, 05 Oct 2018 14:19:05 +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 1g8Qwa-0003Og-Uc for pgsql-general@lists.postgresql.org; Fri, 05 Oct 2018 14:19:05 +0000 Received: from sonic312-20.consmr.mail.bf2.yahoo.com ([74.6.128.82]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8QwW-0006Wt-IN for pgsql-general@lists.postgresql.org; Fri, 05 Oct 2018 14:19:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1538749138; bh=GwI51MeqQHW6BwHYdqhOE30Ab6ZgMkR3lBouhTz1a3Y=; h=From:Subject:Date:In-Reply-To:Cc:References:From:Subject; b=WCsIVSRBpwHnHW9Z1YQ2zt2AGQuQ+mBWvKMRWk7RoCeatPCva8qIhECdGQB6y3UmaGCiQFwCNfTU+z02JEWTZBmuCvaO98wkynA0icrKtaRPYaQkyDD6SXHnb6tBcQSWLK2blNNaJrujDGdZKsIQNpVLD/qkmPOIwxL6HldXU8qkzlMVK8uitLgC2Srsn61fNRlZzHK3LEm3hTqdgPXB7k+VtCLl1JdkONVamxIMN19XZsp64cc6GVUXx1D650VSUcEN/62y10/sM3CiC5brhf7x7De21PDPLGOG5+V+VNBmjN0I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qLX6JuKLaG zGznKszK3Jzj.Yy92nLl0PoWriVybjMViHW99JnRZhiq2q2ScNY8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Fri, 5 Oct 2018 14:18:58 +0000 Received: from 165.225.39.63 (EHLO ip-192-168-1-55.ec2.internal) ([165.225.39.63]) by smtp408.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID dd1b0c0ab28bb3cdfd2407734168e110 for ; Fri, 05 Oct 2018 14:18:55 +0000 (UTC) From: Ravi Krishna Content-Type: multipart/alternative; boundary="Apple-Mail=_F3A0F691-FF1A-4029-8D38-A3D0B2B74095" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: COPY from a remote machine in Datastage Date: Fri, 5 Oct 2018 10:18:52 -0400 In-Reply-To: Cc: pgsql-general@lists.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 --Apple-Mail=_F3A0F691-FF1A-4029-8D38-A3D0B2B74095 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >=20 > Hello, if you need to use COPY command from remote machine and you use = some libpq bindings (aka ruby pg gem for example), you can use functions = associated with COPY command = (https://www.postgresql.org/docs/10/static/libpq-copy.html = ). They = should be provided by bindings of postgres library you're using. >=20 > If you can share more info, at least how do you access postgres (via = Ruby gem for example or from client's console), I can try to be more = descriptive. We not writing any Ruby/Python code. We are using Datastage. Datastage = has in built features for most of the stuff. For example to bulk load = data from csv files into Oracle/DB2 etc, it has a BULK loader feature. However DS has no = support for PG directly and we are piggy backing on ODBC where there is = no BULK loader. The only recourse for us is to type in SQL as DS allows user code. --Apple-Mail=_F3A0F691-FF1A-4029-8D38-A3D0B2B74095 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

Hello, if you need to use COPY = command from remote machine and you use some libpq bindings (aka ruby pg = gem for example), you can use functions associated with COPY command (https://www.postgresql.org/docs/10/static/libpq-copy.html).= They should be provided by bindings of postgres library you're = using.

If you can share more info, at least how do you access = postgres (via Ruby gem for example or from client's console), I can try = to be more descriptive.

We not writing any Ruby/Python code.  We are = using Datastage. Datastage has in built features for most of the stuff. = For example to bulk load data from csv files
into Oracle/DB2 = etc, it has a BULK loader feature. However DS has no support for PG = directly and we are piggy backing on ODBC where there is no BULK = loader.

The only recourse for us is = to type in SQL as DS allows user code.


= --Apple-Mail=_F3A0F691-FF1A-4029-8D38-A3D0B2B74095--