Re: copyManager Implementation :: in postgreSQL community Driver

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Yogi S <infayogi(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: copyManager Implementation :: in postgreSQL community Driver
Date: 2018-07-23 13:24:40
Message-ID: bde4674e-97f7-47fd-36de-419788bddb3c@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2018-07-23 13:27:44 Re: Improving pg_dump performance
Previous Message Ron 2018-07-23 13:06:28 Re: Improving pg_dump performance