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 1gAI4X-0004JE-4l for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 17:14:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAI4V-0002Hh-91 for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 17:14:55 +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 1gAI4U-0002Ha-Uv for pgsql-general@lists.postgresql.org; Wed, 10 Oct 2018 17:14:55 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gAI4S-0002pq-EJ for pgsql-general@postgresql.org; Wed, 10 Oct 2018 17:14:54 +0000 Received: by mail-pl1-x62d.google.com with SMTP id c8-v6so2832704plo.9 for ; Wed, 10 Oct 2018 10:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=yqNb8fVEb09x17fF2Y5vDBCFqKj1F8z1T0IzM1s7M6g=; b=VQx8ZQwkm3vm8+JOCL78VTlrz+FEFgb9d9T7es7EY2Iz+9VOKzaWc4qxq9qrFVOQkj 21a61GxZDAw091Sh9bfKQIdqb7S9aJjsNoI61K59MPAW4SpYYPguO4/hGJkD9lxZrtrU ime5szwX0GZEwFfigjFUKjfnOm1r6pHHIs/R8LX2RfpyI0rEUQ5rV0kCUVZdoHJwmPAi 4C3CYaT5lNDoJ/vMVfbjy06AbNMRHC3UIblYfofZxwu0yhG9CMnlCCMqMO8Ek8TmzawS lcbDFVmqqp53fO0DYADM7+vvHX8kpaEe7sRjcnHnuzU89zipWxZOIdFheMr2npfrwtwn fY+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=yqNb8fVEb09x17fF2Y5vDBCFqKj1F8z1T0IzM1s7M6g=; b=OkG5U2zFvlH404/7SZprauIv07cBrH5mtRynwX2K4Bl/T2bhjwMhBIOylMUYtqL5lH 8qMbjJsSep3NHcCDGh0zPMYFauxdyKB0o2Yg8CxAW3QEIjoeC1dFapU9Go8gQEdhZ5YH N8GEQ/dees1mZhOKY3854FFeSHjveHKDOQB5QDkmUWRLDKpWDe0UXf63AMxTIGH4TeMi pBNw5MVH8q1HLubpUbBTlda2GlVEHSxRwhigdTRgFefAwcoL2GG3JIJvFkALvJEWjHcZ 0HWYE0ZElKzqQ/KXrg92rfZW/KXj5tCrLn6CMcMmB48guAMQ8+KcmE6JRpBK3TzvN7Ad YJmA== X-Gm-Message-State: ABuFfogz5M6JdFuaV0iCj4M8eIzGJUkIVcWpplv1Fk5SpTYR5uD3QWZY KDgWWjNzukRkGEocr+3QWOEsMKVF X-Google-Smtp-Source: ACcGV60RH+RExTMbXBeQ2ZCh1vatSYnyd7beS+7VTH4F/8wrJN9ieI+56MeVgy2wE+TME+bSTuRU5g== X-Received: by 2002:a17:902:20c9:: with SMTP id v9-v6mr27561300plg.156.1539191689353; Wed, 10 Oct 2018 10:14:49 -0700 (PDT) Received: from [10.104.83.48] ([155.100.47.0]) by smtp.gmail.com with ESMTPSA id d10-v6sm25544948pgp.26.2018.10.10.10.14.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 10:14:48 -0700 (PDT) From: Rob Sargent Message-Id: <638D8006-CE07-4F23-B1AA-710A9A9A07A4@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_65EF2F2D-6EC2-42E0-9120-AE64A2F067A4" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: COPY threads Date: Wed, 10 Oct 2018 11:14:47 -0600 In-Reply-To: Cc: "pgsql-general@postgresql.org" To: Laurenz Albe References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_65EF2F2D-6EC2-42E0-9120-AE64A2F067A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Oct 10, 2018, at 10:50 AM, Laurenz Albe = wrote: >=20 > 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. Thank you for that confirmation. I had all cores firing on my = copyManager box and it turned out it was really just looking really hard = for more byte to free up. I was getting a lot more out of the database = than I could chew. OOM ensued. Cheers, rjs= --Apple-Mail=_65EF2F2D-6EC2-42E0-9120-AE64A2F067A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Oct 10, 2018, at 10:50 AM, Laurenz Albe <laurenz.albe@cybertec.at> 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.
Thank you for that = confirmation.  I had all cores firing on my copyManager box and it = turned out it was really just looking really hard for more byte to free = up.  I was getting a lot more out of the database than I could = chew.  OOM ensued.

Cheers,
rjs
= --Apple-Mail=_65EF2F2D-6EC2-42E0-9120-AE64A2F067A4--