From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Does Postgresql 10 query partitions in parallel?
Date: Wed, 6 Dec 2017 10:53:22 -0800
Message-ID: <56dca4c5-f043-abe6-0b4b-cea22a141e63@hogranch.com> (raw)
In-Reply-To: <CAO5258=ZujLDMM4DgNZAf4AoDEn2=xwY6vj1owb5T7AU5k11-w@mail.gmail.com>
References: <CAO5258=ZujLDMM4DgNZAf4AoDEn2=xwY6vj1owb5T7AU5k11-w@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: pierce@hogranch.com
Subject: Re: Does Postgresql 10 query partitions in parallel?
In-Reply-To: <56dca4c5-f043-abe6-0b4b-cea22a141e63@hogranch.com>
References: <CAO5258=ZujLDMM4DgNZAf4AoDEn2=xwY6vj1owb5T7AU5k11-w@mail.gmail.com> <56dca4c5-f043-abe6-0b4b-cea22a141e63@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox