diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-07-16 18:38:09 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-07-16 18:38:09 -0400 |
commit | fb2b61a21e141843697de7982c9f6485effcd915 (patch) | |
tree | 883bfb8b603dd2ee2e2fed7de00b8bfd41b01e42 /src/backend/commands/tablecmds.c | |
parent | 9ec9f8f6833db5bafc30c480f96f06bdf5c012e6 (diff) | |
download | postgresql-fb2b61a21e141843697de7982c9f6485effcd915.tar.gz postgresql-fb2b61a21e141843697de7982c9f6485effcd915.zip |
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
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions