Re: COPY from a remote machine in Datastage

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: COPY from a remote machine in Datastage
Date: 2018-10-05 14:35:07
Message-ID: 2e987deb-1529-644b-4b14-a37dd517b856@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/05/2018 09:18 AM, Ravi Krishna wrote:
>>
>> 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.

Can you install the postgres client software (psql) on the client machine
and then have Datastage spawn "psql -c 'COPY ...'"?

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2018-10-05 14:37:17 Re: COPY from a remote machine in Datastage
Previous Message Josef Šimánek 2018-10-05 14:24:13 Re: COPY from a remote machine in Datastage