pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedVersion 11 partitioning: Constraint exclusion vs Partition Pruning
2+ messages / 2 participants
[nested] [flat]
* Version 11 partitioning: Constraint exclusion vs Partition Pruning
@ 2019-09-04 20:15 Mark Steben <mark.steben@drivedominion.com>
0 siblings, 1 reply; 2+ messages in thread
From: Mark Steben @ 2019-09-04 20:15 UTC (permalink / raw)
To: pgsql-admin
Good afternoon,
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.
If we can place variables in the where clause and have partitioning still
work, that would be an awesome enhancement. I see that Declarative
partitioning was implemented in version 10 and a whole raft of partitioning
enhancements in version 11. (We are currently at 9.4 and want to upgrade
as well).
--
*Mark Steben*
Database Administrator
@utoRevenue <http://www.autorevenue.com/; | Autobase
<http://www.autobase.net/;
CRM division of Dominion Dealer Solutions
95D Ashley Ave.
West Springfield, MA 01089
t: 413.327-3045
f: 413.383-9567
www.fb.com/DominionDealerSolutions
www.twitter.com/DominionDealer
www.drivedominion.com <http://www.autorevenue.com/;
<http://autobasedigital.net/marketing/DD12_sig.jpg;
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Version 11 partitioning: Constraint exclusion vs Partition Pruning
@ 2019-09-05 08:21 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Mark Steben <mark.steben@drivedominion.com>
0 siblings, 0 replies; 2+ messages in thread
From: Laurenz Albe @ 2019-09-05 08:21 UTC (permalink / raw)
To: Mark Steben <mark.steben@drivedominion.com>; 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-09-05 08:21 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04 20:15 Version 11 partitioning: Constraint exclusion vs Partition Pruning Mark Steben <mark.steben@drivedominion.com>
2019-09-05 08:21 ` Laurenz Albe <laurenz.albe@cybertec.at>
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