Content-Length: 266642 | pFad | http://github.com/postgrespro/postgres_cluster/commit/395ac0c98ffc1e48d5071ae6b35385c1027cca82

7D Introduce delay after creation of concurrent index · postgrespro/postgres_cluster@395ac0c · GitHub
Skip to content

Commit 395ac0c

Browse files
committed
Introduce delay after creation of concurrent index
1 parent 75c6ced commit 395ac0c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/mmts/multimaster.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4050,6 +4050,13 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
40504050
MtmProcessDDLCommand(queryString, false, true);
40514051
MtmTx.isDistributed = false;
40524052
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);
40534060
} else if (MtmApplyContext != NULL) {
40544061
MemoryContext oldContext = MemoryContextSwitchTo(MtmApplyContext);
40554062
Assert(oldContext != MtmApplyContext);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/395ac0c98ffc1e48d5071ae6b35385c1027cca82

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy