mirror of https://github.com/citusdata/citus.git
Execute CREATE INDEX CONCURRENTLY concurrently
parent
eb398580f7
commit
1b1c6374f7
|
@ -598,7 +598,7 @@ ExecuteDistributedDDLJob(DDLJob *ddlJob)
|
|||
|
||||
PG_TRY();
|
||||
{
|
||||
ExecuteModifyTasksSequentiallyWithoutResults(ddlJob->taskList, CMD_UTILITY);
|
||||
ExecuteModifyTasksWithoutResults(ddlJob->taskList);
|
||||
|
||||
if (shouldSyncMetadata)
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue