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 parent252dd43 commit13d2f71Copy full SHA for 13d2f71
multimaster.c
@@ -4049,6 +4049,13 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
4049
MtmProcessDDLCommand(queryString, false, true);
4050
MtmTx.isDistributed= false;
4051
skipCommand= true;
4052
+/*
4053
+ * Index is created at replicas completely asynchronously, so to prevent unintended interleaving with subsequent
4054
+ * commands in this session, just wait here for a while.
4055
+ * It will help to pass regression tests but will not be enough for construction of real large indexes
4056
+ * where difference between completion of this operation at different nodes is unlimited
4057
+ */
4058
+MtmSleep(USECS_PER_SEC);
4059
}elseif (MtmApplyContext!=NULL) {
4060
MemoryContextoldContext=MemoryContextSwitchTo(MtmApplyContext);
4061
Assert(oldContext!=MtmApplyContext);