Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMgia-00072Z-WA for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 20:55:01 +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 1eMgia-0005ey-BL for pgsql-general@arkaria.postgresql.org; Wed, 06 Dec 2017 20:55:00 +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 1eMgia-0005eo-0t for pgsql-general@lists.postgresql.org; Wed, 06 Dec 2017 20:55:00 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eMgiX-0007to-EF for pgsql-general@postgresql.org; Wed, 06 Dec 2017 20:54:58 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eMgiL-0007rV-3u for pgsql-general@postgresql.org; Wed, 06 Dec 2017 21:54:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: Re: Does Postgresql 10 query partitions in parallel? Date: Wed, 6 Dec 2017 21:54:44 +0100 Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org 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 In-Reply-To: Content-Language: de-DE X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Maltsev Eduard schrieb am 06.12.2017 um 14:11: > 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. Postgres 9.6 started supporting parallel queries and this has been extended in 10 This has not been "integrated" with the new declarative partitioning. I think Postgres 11 will support parallel execution based on partitions. However with foreign tables, a lot of work is pushed to the foreign server (e.g. joins, where clause, aggregation) and whatever gets pushed down to the foreign server might be executed in parallel (subject to the restrictions on parallel query on _that_ server). I don't think requests to multiple foreign servers are executed in parallel though. Thomas