aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-29 11:27:57 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-29 11:49:30 -0400
commit41372071dfaab97a1a8dca83e32b88413460f477 (patch)
tree20a43ee2c573cff3b3c6d6f2e7b5ad47072bcb3a /src/backend
parentdad335b89f2e1d543ef8226b7de4b191246a06dd (diff)
downloadpostgresql-41372071dfaab97a1a8dca83e32b88413460f477.tar.gz
postgresql-41372071dfaab97a1a8dca83e32b88413460f477.zip
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
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/commands/indexcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index 3b82876c909..576c85f732d 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -1033,7 +1033,7 @@ DefineIndex(Oid relationId,
indexRelationId, /* this is our child */
createdConstraintId,
is_alter_table, check_rights, check_not_in_use,
- false, quiet);
+ skip_build, quiet);
}
pfree(attmap);