Execute CREATE INDEX CONCURRENTLY concurrently

pull/2559/head
Marco Slot 2018-12-18 17:35:34 +01:00 committed by Jason Petersen
parent eb398580f7
commit 1b1c6374f7
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
2 changed files with 2 additions and 3 deletions

View File

@ -598,7 +598,7 @@ ExecuteDistributedDDLJob(DDLJob *ddlJob)
PG_TRY();
{
ExecuteModifyTasksSequentiallyWithoutResults(ddlJob->taskList, CMD_UTILITY);
ExecuteModifyTasksWithoutResults(ddlJob->taskList);
if (shouldSyncMetadata)
{

View File

@ -1267,8 +1267,7 @@ ExecuteModifyTasksWithoutResults(List *taskList)
* ExecuteModifyTasksSequentiallyWithoutResults basically calls ExecuteSingleModifyTask in
* a loop in order to simulate sequential execution of a list of tasks. Useful
* in cases where issuing commands in parallel before waiting for results could
* result in deadlocks (such as CREATE INDEX CONCURRENTLY or foreign key creation to
* reference tables).
* result in deadlocks (such as foreign key creation to reference tables).
*
* The function returns the affectedTupleCount if applicable. Otherwise, the function
* returns 0.