Re: Version 11 partitioning: Constraint exclusion vs Partition Pruning

Laurenz Albe <[email protected]>
Newsgroups gmane.comp.db.postgresql.admin
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.