pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix partition pruning with IS [NOT] NULL clauses
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix partition pruning with IS [NOT] NULL clauses
@ 2018-07-16 22:48 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2018-07-16 22:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix partition pruning with IS [NOT] NULL clauses

The original code was unable to prune partitions that could not possibly
contain NULL values, when the query specified less than all columns in a
multicolumn partition key.  Reorder the if-tests so that it is, and add
more commentary and regression tests.

Reported-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Co-authored-by: Dilip Kumar <dilipbalaut@gmail.com>
Co-authored-by: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Reviewed-by: amul sul <sulamul@gmail.com>
Discussion: https://postgr.es/m/CAFjFpRc7qjLUfXLVBBC_HAnx644sjTYM=qVoT3TJ840HPbsTXw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e353389d24da48c708f72379f87e9b518baac521

Modified Files
--------------
src/backend/partitioning/partprune.c          | 78 ++++++++++++++-------------
src/test/regress/expected/partition_prune.out | 41 ++++++++++++++
src/test/regress/sql/partition_prune.sql      |  7 +++
3 files changed, 90 insertions(+), 36 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix partition pruning with IS [NOT] NULL clauses
@ 2018-07-16 22:48 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2018-07-16 22:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix partition pruning with IS [NOT] NULL clauses

The original code was unable to prune partitions that could not possibly
contain NULL values, when the query specified less than all columns in a
multicolumn partition key.  Reorder the if-tests so that it is, and add
more commentary and regression tests.

Reported-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Co-authored-by: Dilip Kumar <dilipbalaut@gmail.com>
Co-authored-by: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Reviewed-by: amul sul <sulamul@gmail.com>
Discussion: https://postgr.es/m/CAFjFpRc7qjLUfXLVBBC_HAnx644sjTYM=qVoT3TJ840HPbsTXw@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fb2b61a21e141843697de7982c9f6485effcd915

Modified Files
--------------
src/backend/partitioning/partprune.c          | 78 ++++++++++++++-------------
src/test/regress/expected/partition_prune.out | 41 ++++++++++++++
src/test/regress/sql/partition_prune.sql      |  7 +++
3 files changed, 90 insertions(+), 36 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-07-16 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-16 22:48 pgsql: Fix partition pruning with IS [NOT] NULL clauses Alvaro Herrera <alvherre@alvh.no-ip.org>
2018-07-16 22:48 pgsql: Fix partition pruning with IS [NOT] NULL clauses Alvaro Herrera <alvherre@alvh.no-ip.org>

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