Fix improper NULL handling in list partitioning code.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/partition.c | modified | +7 −3 |
| src/test/regress/expected/insert.out | modified | +7 −0 |
| src/test/regress/sql/insert.sql | modified | +6 −0 |
Discussion
- Bug in get_partition_for_tuple 6 messages · 2017-03-10 → 2017-03-28