From: Rob Sargent <robjsargent@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: COPY threads
Date: Wed, 10 Oct 2018 13:41:37 -0600
Message-ID: <B7C6107B-7886-463B-8B36-5750A797285B@gmail.com> (raw)
In-Reply-To: <20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de>
References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com>
<d198d930f6c764c8c8667023fc2de333e02ddf46.camel@cybertec.at>
<20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de>
> On Oct 10, 2018, at 1:24 PM, Andres Freund <andres@anarazel.de> wrote:
>
> On 2018-10-10 18:50:02 +0200, Laurenz Albe wrote:
>> Rob Sargent wrote:
>>> Can anyone here tell me whether or not the CopyManager facility in JDBC
>>> via org.postgresql:postgresql:42.1.4 is internally multithreaded?
>>> Running on CentOS 7 (all participants), java8, postgres 10.5
>>
>> It isn't, and there would not be much reason for it to be, as COPY
>> in PostgreSQL cannot be parallelized.
>
> s/cannot/is not/.
>
> You obviously can just copy the data into postgres over multiple
> connections if you need to speed COPY up. But that requires splitting up
> the data on the clientside.
>
> Greetings,
>
> Andres Freund
Interesting note, deeply pocketed. The COPY portion is /not/ my problem - that’s plenty fast enough and memory efficient enough straight from the box. I had over looked that I was requesting 33M records, in a map with a longish CSV string as key...then playing sort games with keys and ... well that’s as stupid as I got.
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: robjsargent@gmail.com, andres@anarazel.de, laurenz.albe@cybertec.at
Subject: Re: COPY threads
In-Reply-To: <B7C6107B-7886-463B-8B36-5750A797285B@gmail.com>
References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> <d198d930f6c764c8c8667023fc2de333e02ddf46.camel@cybertec.at> <20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de> <B7C6107B-7886-463B-8B36-5750A797285B@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