]> granicus.if.org Git - postgresql/commit
Fix interference between cavering indexes and partitioned tables
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 11 Apr 2018 13:44:26 +0000 (16:44 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 11 Apr 2018 13:44:26 +0000 (16:44 +0300)
commit5c6110c6a960ad6fe1b0d0fec6ae36ef4eb913f5
tree97e17e555403a6e5d4da5ab5af95b240ff225db1
parentf1f537cb46299d81abb08258fd322f72170dff58
Fix interference between cavering indexes and partitioned tables

The bug is caused due to the original IndexStmt that DefineIndex receives
being overwritten when processing the INCLUDE columns. Use separate list of
index params to propagate to child tables. Add tests covering this case.

Amit Langote and Alexander Korotkov.
src/backend/commands/indexcmds.c
src/test/regress/expected/indexing.out
src/test/regress/sql/indexing.sql