Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAKMi-00055S-9V for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 19:41:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAKMf-0006CM-9g for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 19:41:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAKMe-0006CF-Vp for pgsql-general@lists.postgresql.org; Wed, 10 Oct 2018 19:41:49 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gAKMY-0006bC-BT for pgsql-general@postgresql.org; Wed, 10 Oct 2018 19:41:48 +0000 Received: by mail-pf1-x444.google.com with SMTP id m77-v6so3133302pfi.8 for ; Wed, 10 Oct 2018 12:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mPXCZy6PKR5rtCbCopPjghHd2CX8AnRgnoU0nRserns=; b=sZfOsfOCLEZp6zZHWAyRmBuw/Ircm74tesM3JqjPfaeoape57aioh8vHwfFSW1lu3f RWgdTamYsbuELVFcSyr4P8UHFw8zPvVrlQar/tAnrRQKJwY5mtgLSkVo9ABqdYL/AKhb pf5msQVd47WIEs4KoRlCbhrFqc3W94VvhSwiiRXUGr4LTcgBFEw11CQ4dbT0p1lBTaD5 MVU8lJvqmJBDZh86oqVMX3ZL/Ba8Y2B7cwn/vHl1TkTTKhxNMm+SzRAZ5puKJptKc8Ax iD8sUuWyTTMVGsa2DOG98k8YMsrNa+lGXgqjQL6ccLlYk70R+W/sMf332gXIgBE5wp6R i7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mPXCZy6PKR5rtCbCopPjghHd2CX8AnRgnoU0nRserns=; b=Rb3atbXHMk8vhTBUWJJtsKEUpy+rCRuND24ATDFH0txC3IQUTGUOR0kswk8onBopWj edvu93z5M0aWH5aGDVuXzBlMOAQllb99+jG63h7K+OE6Yo15o8JmzGRETGPWZYLezQDR toiZfjYQ2YXM5F48BMvgylTyh+8u2YhVq175uzwHOVv6msl9bIUjJ0nRYWyTc9VTHupI MxL5xHTKvdPNUUYqETI0X/AyNwrVTBLBVw8zkb+ZqFa8LMog/cciSX7kQvi6aJPFrcDM yMiqQDDW8sjN9R3HbNRQSwE0oExEWMe/s3EASV7iLfYwXpVzfJ45UJe9SczH3HIjq9oB FlUA== X-Gm-Message-State: ABuFfohHLqSkABn26sdqAgPCyG4jsgOhH9XOKCgO7K8UjeNOh1JWyfb5 HErRPa8YEC48tMjs2w9vrFY= X-Google-Smtp-Source: ACcGV60J2Zy8e2Ml+SZ38kE8u10T6FdjPtiQQ4OGOgQUY/bLrgt8/lNRSWt4He3DJ973TVqRBM+4RQ== X-Received: by 2002:a63:5509:: with SMTP id j9-v6mr30338578pgb.208.1539200499527; Wed, 10 Oct 2018 12:41:39 -0700 (PDT) Received: from [10.104.83.48] ([155.100.47.0]) by smtp.gmail.com with ESMTPSA id 20-v6sm25748804pge.77.2018.10.10.12.41.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 12:41:39 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: COPY threads From: Rob Sargent In-Reply-To: <20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de> Date: Wed, 10 Oct 2018 13:41:37 -0600 Cc: Laurenz Albe , "pgsql-general@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> <20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de> To: Andres Freund X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Oct 10, 2018, at 1:24 PM, Andres Freund wrote: >=20 > 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=20 >>> via org.postgresql:postgresql:42.1.4 is internally multithreaded?=20 >>> Running on CentOS 7 (all participants), java8, postgres 10.5 >>=20 >> It isn't, and there would not be much reason for it to be, as COPY >> in PostgreSQL cannot be parallelized. >=20 > s/cannot/is not/. >=20 > 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. >=20 > Greetings, >=20 > Andres Freund Interesting note, deeply pocketed. The COPY portion is /not/ my problem = - that=E2=80=99s 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=E2=80=99s as stupid as I got.