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 1gAK6J-0003yA-40 for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 19:24:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAK6G-0006lU-NO for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 19:24:52 +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 1gAK6F-0006lN-Jv for pgsql-general@lists.postgresql.org; Wed, 10 Oct 2018 19:24:52 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAK6A-0006BI-3K for pgsql-general@postgresql.org; Wed, 10 Oct 2018 19:24:51 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5413C21C24; Wed, 10 Oct 2018 15:24:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 10 Oct 2018 15:24:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=hNUfT8L4MRRF1D+uBTNlr3gyhQa SYZP4ttSTsS48yD4=; b=uhzUs+cVK5ROTO7wBwkaPyCn+vxXr5iSdvtL1fKsysa Fpm3+OSlWld68kmVtFnnZUhufqnCop4fhfiiVawLjXX21xIu/6yweu3llTrCTmFO bfs4NqyXIIetVjeAKL0Ttokxy75K9Kzr/7uExH6DjbJPTKLrhrEHFvZkOKYAs4vA plOWO98FDljNtt1niDaZ+SnlsPSuR436F1gtb9MbzHGIfySaeQKdEPKNo8/DiEo4 vSnDfLmOwzG0gwfo44OPogLdmRg4Pqo/fHIcfcaUzkeImwdrsIc6C6hJcR26WiFb I6Q1I9iCjN74KVlgjjkSpJIuG6Mpm968tRjKqeTX3vw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=hNUfT8 L4MRRF1D+uBTNlr3gyhQaSYZP4ttSTsS48yD4=; b=lJUI6828ac3xUIj7NE6RWe evHAvjYRK55ikqAJDR+sSvJ57POWRY7xZVOv4pKmFYTMktHl4A7Fb22hjOEttyxJ PCmURGJiRMTG2W1bsaYJcPSIo/MdIcVZbedch3r09GOR+Nx4ApqhuMkfQ0HdHHTI xHoTXpNQzpUONATH0Z6bY4Yjq6TLl+WRdI46wyOFcWvHrhuOFZ/8lfsh9JArZdN2 pD9Kuv2Pjlgmi/yeKdj5tzplE/RUSGttM+eMMRKBKY21Y4kSPGgDdyht5J5ppko1 nH/+eLrZqVc9Idw8bSx9PLUbrTn9fNV4EQCVIYRGD1pqIGuX0FRo4x1ZCkCyVFGg == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (104-2-144-147.lightspeed.sntcca.sbcglobal.net [104.2.144.147]) by mail.messagingengine.com (Postfix) with ESMTPA id E7914E48BE; Wed, 10 Oct 2018 15:24:42 -0400 (EDT) Date: Wed, 10 Oct 2018 12:24:40 -0700 From: Andres Freund To: Laurenz Albe Cc: Rob Sargent , "pgsql-general@postgresql.org" Subject: Re: COPY threads Message-ID: <20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de> References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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