Content-Length: 266691 | pFad | http://github.com/postgrespro/postgres_cluster/commit/7b06c79170d9e92ddcaa27b75bceea8c9c2d1f6d

2D [PGPRO-4074] Allow multiple processes acquire the same repl origen. · postgrespro/postgres_cluster@7b06c79 · GitHub
Skip to content

Commit 7b06c79

Browse files
committed
[PGPRO-4074] Allow multiple processes acquire the same repl origen.
Slight edit of 3f357ebff64 cherry pick. tags: multimaster (cherry picked from commit d33fc4b8c93971a4bcd8b5900004c3e9cc5a8b54)
1 parent 3326678 commit 7b06c79

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/replication/logical/origen.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,13 @@ replorigen_session_setup(RepOriginId node)
10951095
if (curstate->roident != node)
10961096
continue;
10971097

1098-
else if (curstate->acquired_by != 0)
1098+
/*
1099+
* MTM-CRUTCH.
1100+
*
1101+
* Allow multiple backends (mm parallel workers) to setup same
1102+
* replication session.
1103+
*/
1104+
else if (curstate->acquired_by != 0 && DetectGlobalDeadLock == NULL)
10991105
{
11001106
ereport(ERROR,
11011107
(errcode(ERRCODE_OBJECT_IN_USE),

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/7b06c79170d9e92ddcaa27b75bceea8c9c2d1f6d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy