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 1gAhSE-0003pZ-K3 for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 20:21:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAhSD-0006ST-1K for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 20:21:05 +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 1gAhSC-0006SL-QN for pgsql-general@lists.postgresql.org; Thu, 11 Oct 2018 20:21:04 +0000 Received: from mail-out.m-online.net ([212.18.0.9]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAhSA-00075W-DI for pgsql-general@lists.postgresql.org; Thu, 11 Oct 2018 20:21:04 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 42WMmX6d58z1r3nL for ; Thu, 11 Oct 2018 22:21:00 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 42WMmX57Fsz1qvlk for ; Thu, 11 Oct 2018 22:21:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id XZBQDZHCHfFo for ; Thu, 11 Oct 2018 22:20:59 +0200 (CEST) Received: from [192.168.178.37] (ppp-46-244-159-59.dynamic.mnet-online.de [46.244.159.59]) by mail.mnet-online.de (Postfix) with ESMTP for ; Thu, 11 Oct 2018 22:20:59 +0200 (CEST) Subject: Re: COPY threads To: pgsql-general@lists.postgresql.org Newsgroups: gmane.comp.db.postgresql.general References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> From: Thomas Kellerer Message-ID: Date: Thu, 11 Oct 2018 22:20:58 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rob Sargent schrieb am 10.10.2018 um 00:45:> 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 An alternative to creating your own multi-threaded importer, might be to use pgLoader which supports that out of the box: https://pgloader.readthedocs.io/en/latest/pgloader.html#a-note-about-parallelism I have never used it though, but heard good things about it.