We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent75c6ced commit395ac0cCopy full SHA for 395ac0c
contrib/mmts/multimaster.c
@@ -4050,6 +4050,13 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
4050
MtmProcessDDLCommand(queryString, false, true);
4051
MtmTx.isDistributed= false;
4052
skipCommand= true;
4053
+/*
4054
+ * Index is created at replicas completely asynchronously, so to prevent unintended interleaving with subsequent
4055
+ * commands in this session, just wait here for a while.
4056
+ * It will help to pass regression tests but will not be enough for construction of real large indexes
4057
+ * where difference between completion of this operation at different nodes is unlimited
4058
+ */
4059
+MtmSleep(USECS_PER_SEC);
4060
}elseif (MtmApplyContext!=NULL) {
4061
MemoryContextoldContext=MemoryContextSwitchTo(MtmApplyContext);
4062
Assert(oldContext!=MtmApplyContext);