From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Mark Steben <mark.steben@drivedominion.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Version 11 partitioning: Constraint exclusion vs Partition Pruning
Date: Thu, 05 Sep 2019 10:21:46 +0200
Message-ID: <2d38afc0f0f193b4a8b3762378dfd0bebd5ea5dd.camel@cybertec.at> (raw)
In-Reply-To: <CADyzmyyd7GNThHRWdEudtxDr8OXriQu8XUdEon0WtqAQ-tq89w@mail.gmail.com>
References: <CADyzmyyd7GNThHRWdEudtxDr8OXriQu8XUdEon0WtqAQ-tq89w@mail.gmail.com>
Mark Steben wrote:
> I am contemplating implementing partitioning in Postgres v 11. I am
> reading the documentation and came across this statement in the
> Constraint Exclusion section:
> Constraint exclusion only works when the query's WHERE clause
> contains constants (or externally supplied parameters).
> Is this true also in Partition pruning? I don't see a similar
> statement in that section.
In v11, partition pruning will also work at query execution time,
that is, you don't have to use a constant.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, mark.steben@drivedominion.com
Subject: Re: Version 11 partitioning: Constraint exclusion vs Partition Pruning
In-Reply-To: <2d38afc0f0f193b4a8b3762378dfd0bebd5ea5dd.camel@cybertec.at>
* 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