pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <srkrishna1@aol.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: COPY from a remote machine in Datastage
Date: Fri, 5 Oct 2018 10:18:52 -0400
Message-ID: <FFC4A994-D6C9-485D-AD62-6843FDF12970@aol.com> (raw)
In-Reply-To: <CAFp7Qwp+WLSMOpd96EGZufMN99GnPB=kaAot_7bTct97bYxYxw@mail.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>

> 
> 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 <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.

view thread (7+ messages)  latest in thread

Message-ID: <FFC4A994-D6C9-485D-AD62-6843FDF12970@aol.com>
Permalink:  ../FFC4A994-D6C9-485D-AD62-6843FDF12970@aol.com/
Also on:    postgresql.org/message-id/FFC4A994-D6C9-485D-AD62-6843FDF12970@aol.com

 · 

reply

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: srkrishna1@aol.com
  Subject: Re: COPY from a remote machine in Datastage
  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>

* 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