]> granicus.if.org Git - postgresql/commit
Fix crash when ALTER TABLE recreates indexes on partitions
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 29 Jun 2018 15:27:57 +0000 (11:27 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 29 Jun 2018 15:49:30 +0000 (11:49 -0400)
commit41372071dfaab97a1a8dca83e32b88413460f477
tree20a43ee2c573cff3b3c6d6f2e7b5ad47072bcb3a
parentdad335b89f2e1d543ef8226b7de4b191246a06dd
Fix crash when ALTER TABLE recreates indexes on partitions

The skip_build flag was not being passed correctly when recursing to
indexes on partitions, leading to attempts to rebuild indexes when they
were not yet ready to be rebuilt.

Reported-by: Rajkumar Raghuwanshi
Discussion: https://postgr.es/m/CAKcux6mxNCGsgATwf5CGMF8g4WSupCXicCVMeKUTuWbyxHOMsQ@mail.gmail.com
src/backend/commands/indexcmds.c
src/test/regress/expected/indexing.out
src/test/regress/sql/indexing.sql