Fix unique INCLUDE indexes on partitioned tables
Alvaro Herrera <alvherre@alvh.no-ip.org>
Fix unique INCLUDE indexes on partitioned tables We were considering the INCLUDE columns as part of the key, allowing unicity-violating rows to be inserted in different partitions. Concurrent development conflict in eb7ed3f30634 and 8224de4f42cc. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/20190109065109.GA4285@telsasoft.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/indexcmds.c | modified | +1 −1 |
| src/test/regress/expected/indexing.out | modified | +3 −0 |
| src/test/regress/sql/indexing.sql | modified | +1 −0 |
Discussion
- unique, partitioned index fails to distinguish index key from INCLUDEd columns 4 messages · 2019-01-09 → 2019-01-15