From: Stephen Frost <sfrost@snowman.net>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Chris Morris <chris@mysteryscience.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: PG 12: Partitioning across a FDW?
Date: Wed, 25 Mar 2020 11:53:48 -0400
Message-ID: <20200325155348.GU13712@tamriel.snowman.net> (raw)
In-Reply-To: <fed5589b52e499684e6462197aec3f081c6c0d99.camel@cybertec.at>
References: <CALrUc2X+nkwTDq3QUKvjHs2K03dLpdarzfw-6fPTVwxA72BXdQ@mail.gmail.com>
<fed5589b52e499684e6462197aec3f081c6c0d99.camel@cybertec.at>
Greetings,
* Laurenz Albe (laurenz.albe@cybertec.at) wrote:
> On Tue, 2020-03-24 at 17:50 -0500, Chris Morris wrote:
> > Is it even possible to use PG partitioning across a Foreign Server?
>
> I am not certain what you mean, but you can have foreign tables as partitions
> of a partitioned table. The partitions won't be processed in parallel though.
Not yet.. There is ongoing work to make that happen though.
Also, accesses through the partitioned table to the foreign tables can
happen in parallel, of course, just has to be through different
connections to the main database. This makes it reasonable to consider
using a partitioned table across foreign tables for queries that are
pulling back a small set of records, ideally based on the partition key
so that only the one foreign table that has the data you need is
queried, but it's not so good for large analytical type of workloads
where you want to run something across all of the partitions in
parallel (and in parallel on each of the partitions, etc).
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: sfrost@snowman.net, laurenz.albe@cybertec.at, chris@mysteryscience.com
Subject: Re: PG 12: Partitioning across a FDW?
In-Reply-To: <20200325155348.GU13712@tamriel.snowman.net>
References: <CALrUc2X+nkwTDq3QUKvjHs2K03dLpdarzfw-6fPTVwxA72BXdQ@mail.gmail.com> <fed5589b52e499684e6462197aec3f081c6c0d99.camel@cybertec.at> <20200325155348.GU13712@tamriel.snowman.net>
* 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