pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Yogi S <infayogi@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: copyManager Implementation :: in postgreSQL community Driver
Date: Mon, 23 Jul 2018 06:24:40 -0700
Message-ID: <bde4674e-97f7-47fd-36de-419788bddb3c@aklaver.com> (raw)
In-Reply-To: <CAOs6+zs5sa3Tg7f5AzCOW_dUW=nADSv6Quvbrq4rgi8pFMgv8Q@mail.gmail.com>
References: <CAOs6+zs5sa3Tg7f5AzCOW_dUW=nADSv6Quvbrq4rgi8pFMgv8Q@mail.gmail.com>

On 07/23/2018 02:11 AM, Yogi S wrote:
> Hi All,
> there is a copyManager() implementation in community version JDBC driver.
>  From what I understand from client end, we provide the file as a 
> fileReader and pass it on to the copyManager() instance.
> 
> I see the performance of this copyManager is not comparable to PSQL 
> command line copy. Hence I wanted to know how differently is copyManager 
> is implemented?

Where did you see this?

 From here:

https://jdbc.postgresql.org/documentation/publicapi/index.html

it looks like it uses COPY.

> 
> does copyManager implement the copy command (/in server/) for the whole 
> file or, it does convert the file data into batches and implement copy 
> command ?

 From above link looks like you have your choice of using a Reader or 
InputStream and setting a buffer size for each.

> 
> Regards
> Yogi


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (2+ messages)

Message-ID: <bde4674e-97f7-47fd-36de-419788bddb3c@aklaver.com>
Permalink:  ../bde4674e-97f7-47fd-36de-419788bddb3c@aklaver.com/
Also on:    postgresql.org/message-id/bde4674e-97f7-47fd-36de-419788bddb3c@aklaver.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: adrian.klaver@aklaver.com, infayogi@gmail.com
  Subject: Re: copyManager Implementation :: in postgreSQL community Driver
  In-Reply-To: <bde4674e-97f7-47fd-36de-419788bddb3c@aklaver.com>
  References: <CAOs6+zs5sa3Tg7f5AzCOW_dUW=nADSv6Quvbrq4rgi8pFMgv8Q@mail.gmail.com> <bde4674e-97f7-47fd-36de-419788bddb3c@aklaver.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