pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@postgresql.org
Subject: Re: Does Postgresql 10 query partitions in parallel?
Date: Wed, 6 Dec 2017 21:54:44 +0100
Message-ID: <p09led$sr0$1@blaine.gmane.org> (raw)
In-Reply-To: <CAO5258=ZujLDMM4DgNZAf4AoDEn2=xwY6vj1owb5T7AU5k11-w@mail.gmail.com>
References: <CAO5258=ZujLDMM4DgNZAf4AoDEn2=xwY6vj1owb5T7AU5k11-w@mail.gmail.com>

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






view thread (6+ messages)

Message-ID: <p09led$sr0$1@blaine.gmane.org>
Permalink:  ../p09led$sr0$1@blaine.gmane.org/
Also on:    postgresql.org/message-id/p09led$sr0$1@blaine.gmane.org

 · 

reply

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: spam_eater@gmx.net
  Subject: Re: Does Postgresql 10 query partitions in parallel?
  In-Reply-To: <p09led$sr0$1@blaine.gmane.org>
  References: <CAO5258=ZujLDMM4DgNZAf4AoDEn2=xwY6vj1owb5T7AU5k11-w@mail.gmail.com> <p09led$sr0$1@blaine.gmane.org>

* 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