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();
|
PG_TRY();
|
||||||
{
|
{
|
||||||
ExecuteModifyTasksSequentiallyWithoutResults(ddlJob->taskList, CMD_UTILITY);
|
ExecuteModifyTasksWithoutResults(ddlJob->taskList);
|
||||||
|
|
||||||
if (shouldSyncMetadata)
|
if (shouldSyncMetadata)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1267,8 +1267,7 @@ ExecuteModifyTasksWithoutResults(List *taskList)
|
||||||
* ExecuteModifyTasksSequentiallyWithoutResults basically calls ExecuteSingleModifyTask in
|
* ExecuteModifyTasksSequentiallyWithoutResults basically calls ExecuteSingleModifyTask in
|
||||||
* a loop in order to simulate sequential execution of a list of tasks. Useful
|
* 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
|
* 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
|
* result in deadlocks (such as foreign key creation to reference tables).
|
||||||
* reference tables).
|
|
||||||
*
|
*
|
||||||
* The function returns the affectedTupleCount if applicable. Otherwise, the function
|
* The function returns the affectedTupleCount if applicable. Otherwise, the function
|
||||||
* returns 0.
|
* returns 0.
|
||||||
|
|
Loading…
Reference in New Issue