Re: Does Postgresql 10 query partitions in parallel?

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Does Postgresql 10 query partitions in parallel?
Дата
Msg-id 56dca4c5-f043-abe6-0b4b-cea22a141e63@hogranch.com
обсуждение исходный текст
Ответ на Does Postgresql 10 query partitions in parallel?  (Maltsev Eduard <emaltsev@intellias.com>)
Ответы Re: Does Postgresql 10 query partitions in parallel?  (Andres Freund <andres@anarazel.de>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: hmidi slim
Дата:
Сообщение: Why the creation of spatial indexes decrease the performance of a query?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Does Postgresql 10 query partitions in parallel?