pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
copyManager Implementation :: in postgreSQL community Driver
2+ messages / 2 participants
[nested] [flat]

* copyManager Implementation :: in postgreSQL community Driver
@ 2018-07-23 09:11  Yogi S <infayogi@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Yogi S @ 2018-07-23 09:11 UTC (permalink / raw)
  To: pgsql-general

Hi All,
there is a copyManager() implementation in community version JDBC driver.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: copyManager Implementation :: in postgreSQL community Driver
@ 2018-07-23 13:24  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Yogi S <infayogi@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Adrian Klaver @ 2018-07-23 13:24 UTC (permalink / raw)
  To: Yogi S <infayogi@gmail.com>; pgsql-general

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-07-23 13:24 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-23 09:11 copyManager Implementation :: in postgreSQL community Driver Yogi S <infayogi@gmail.com>
2018-07-23 13:24 ` Adrian Klaver <adrian.klaver@aklaver.com>

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