Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMepE-0000cH-Be for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 18:53:44 +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 1eMepD-00089k-I2 for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 18:53:43 +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 1eMepC-00089b-Ut for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2017 18:53:43 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eMep9-0005Nc-J7 for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2017 18:53:41 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id vB6IrRl29822 for ; Wed, 6 Dec 2017 10:53:28 -0800 Subject: Re: Does Postgresql 10 query partitions in parallel? To: pgsql-general@lists.postgresql.org References: From: John R Pierce Message-ID: <56dca4c5-f043-abe6-0b4b-cea22a141e63@hogranch.com> Date: Wed, 6 Dec 2017 10:53:22 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------604C843228F5E2668B160364" Content-Language: en-US X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------604C843228F5E2668B160364 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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.   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. https://www.postgresql.org/docs/current/static/parallel-query.html (read the whole chapter) -- john r pierce, recycling bits in santa cruz --------------604C843228F5E2668B160364 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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.   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.

https://www.postgresql.org/docs/current/static/parallel-query.html (read the whole chapter)


-- 
john r pierce, recycling bits in santa cruz
--------------604C843228F5E2668B160364--