From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: COPY from a remote machine in Datastage
Date: Fri, 5 Oct 2018 09:35:07 -0500
Message-ID: <2e987deb-1529-644b-4b14-a37dd517b856@gmail.com> (raw)
In-Reply-To: <FFC4A994-D6C9-485D-AD62-6843FDF12970@aol.com>
References: <1538733298001-0.post@n3.nabble.com>
<68fdc7e7-3a29-ef03-fe5c-5971e357788c@portavita.eu>
<CAG8g3txvk2a34_Mw3BMgodCyaHBTGhiYQ07e0jx-E2t8OBRAFA@mail.gmail.com>
<EB01BE67-FA95-4E66-9FC0-0F2B1219A4D1@aol.com>
<CAFp7Qwp+WLSMOpd96EGZufMN99GnPB=kaAot_7bTct97bYxYxw@mail.gmail.com>
<FFC4A994-D6C9-485D-AD62-6843FDF12970@aol.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: COPY from a remote machine in Datastage
In-Reply-To: <2e987deb-1529-644b-4b14-a37dd517b856@gmail.com>
References: <1538733298001-0.post@n3.nabble.com> <68fdc7e7-3a29-ef03-fe5c-5971e357788c@portavita.eu> <CAG8g3txvk2a34_Mw3BMgodCyaHBTGhiYQ07e0jx-E2t8OBRAFA@mail.gmail.com> <EB01BE67-FA95-4E66-9FC0-0F2B1219A4D1@aol.com> <CAFp7Qwp+WLSMOpd96EGZufMN99GnPB=kaAot_7bTct97bYxYxw@mail.gmail.com> <FFC4A994-D6C9-485D-AD62-6843FDF12970@aol.com> <2e987deb-1529-644b-4b14-a37dd517b856@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox