]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix unique INCLUDE indexes on partitioned tables
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 14 Jan 2019 22:25:19 +0000 (19:25 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 14 Jan 2019 22:25:19 +0000 (19:25 -0300)
commit74aa7e046e4a3927d506bc651261724539f67139
tree08506b5c9416e9e22598ee2b1cb816bd2912816d
parent20b4ed8d03047501cc28b600973564850bd1dd80
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
src/backend/commands/indexcmds.c
src/test/regress/expected/indexing.out
src/test/regress/sql/indexing.sql