Re: Version 11 partitioning: Constraint exclusion vs Partition Pruning

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Mark Steben <mark(dot)steben(at)drivedominion(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Version 11 partitioning: Constraint exclusion vs Partition Pruning
Date: 2019-09-05 08:21:46
Message-ID: 2d38afc0f0f193b4a8b3762378dfd0bebd5ea5dd.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message mallikarjun t 2019-09-05 09:34:31 Streaming replication issue
Previous Message Luca Ferrari 2019-09-05 07:01:07 Re: overwrote THE 'postgres' database - how to recover