Fix improper NULL handling in list partitioning code.
authorRobert Haas <rhaas@postgresql.org>
Mon, 27 Mar 2017 14:51:46 +0000 (10:51 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 27 Mar 2017 14:51:46 +0000 (10:51 -0400)
commit7ecb7143589f38d679bb566311dfa9be1a650fd5
tree36df1817e21e8319094dfd02312998d695d3cbb4
parent8355a011a0124bdf7ccbada206a967d427039553
Fix improper NULL handling in list partitioning code.

The previous logic was wrong when the value was NULL but there was
no partition for NULL.

Amit Langote, reviewed by Jeevan Ladhe

Discussion: http://postgr.es/m/d64f8498-70eb-3c88-b56d-c54fd3b0500f@lab.ntt.co.jp
src/backend/catalog/partition.c
src/test/regress/expected/insert.out
src/test/regress/sql/insert.sql