Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMfRS-0002Ng-Pr for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 19:33:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMfRS-00021A-D3 for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 19:33:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eMfRR-000211-Ri for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2017 19:33:14 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eMfRO-0006CE-Of for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2017 19:33:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0AC3B20C1A; Wed, 6 Dec 2017 14:33:09 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 06 Dec 2017 14:33:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=vvzlaY Nq1lV9j/kwXdj6KllNSsCfTogVlZozzo3fdEk=; b=SGtC+mu0hH4/UXwYi3PJxs Qclk60xbS08T5ZC/cQ52SaYmdiINfF33vLl1hoV/YI6Qg/F2qpfqn2ZgzzfVr8Sb dWBfrkkmJX+tyx3zFd1YrqDqIffc2VKq+U9eNhktDrPC9zbjrrosxjrQ6wOn3AZ2 yJGDhz/Kx9zTk63LWhDVjh9dPv6SKmnWeavwV2htz6ukYXjf3SZzs/9Fb5Sm6r00 4UxPkmBPpwWijIhj0ZExjr8yFuFFg10xQ8Bne3mCpfKyZ2Pl9jj/rd+hgtckypBv VEWbMogGpFTeCr3H5cliYIATL+Uy0Kwqr4iaenlpNchLT1CGAdrZ2rSSCOrvTHqQ == X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id B6E3A24724; Wed, 6 Dec 2017 14:33:08 -0500 (EST) Date: Wed, 6 Dec 2017 11:33:07 -0800 From: Andres Freund To: John R Pierce Cc: pgsql-general@lists.postgresql.org Subject: Re: Does Postgresql 10 query partitions in parallel? Message-ID: <20171206193307.p6mho7faz4oudplm@alap3.anarazel.de> References: <56dca4c5-f043-abe6-0b4b-cea22a141e63@hogranch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56dca4c5-f043-abe6-0b4b-cea22a141e63@hogranch.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2017-12-06 10:53:22 -0800, John R Pierce wrote: > On 12/6/2017 5:11 AM, Maltsev Eduard wrote: > > I'm curious if the new feature of Postgresql allows to take advantage of > > multiple cpus on server, and multiple servers (fdw), for larger read > > only queries (Data mining). In general there should be some worker that > > queries partitions and merges the results, and I expect it to be done in > > parallel. This becomes critical when foreign tables are used, I suppose. > > > PostgreSQL 10 does indeed have a parallel query feature that will use > multiple cores.  you have to explicity invoke it.   "you have to explicitly invoke it" - huh? > As this is a first > implementation, its fairly limited as to the sorts of queries that can be > parallized, but this will be enhanced in future versions. It's already been expanded a lot since 9.6. Greetings, Andres Freund