Content-Length: 282795 | pFad | http://github.com/postgrespro/postgres_cluster/commit/6247ad75b6abbf5d251e2907e320d4d8526af54f

9E support asynchronous commit for twophase operations · postgrespro/postgres_cluster@6247ad7 · GitHub
Skip to content

Commit 6247ad7

Browse files
committed
support asynchronous commit for twophase operations
1 parent 926e96b commit 6247ad7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pglogical_receiver.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ pglogical_receiver_main(Datum main_arg)
298298
mode = MtmGetReplicationMode(nodeId, &got_sigterm);
299299
MTM_LOG1("[STATE] Node %i: wal_receiver starts in %s mode", nodeId, MtmReplicationModeName[mode]);
300300

301+
if (mode == REPLMODE_RECOVERY)
302+
synchronous_twophase = false;
303+
else
304+
synchronous_twophase = true;
305+
301306
if (mode == REPLMODE_EXIT)
302307
{
303308
break;

tests2/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ if [ "$1" = 'postgres' ]; then
5959
shared_preload_libraries = 'multimaster'
6060
default_transaction_isolation = 'repeatable read'
6161
log_line_prefix = '%m: '
62+
wal_writer_delay = 5ms
6263
# log_statement = all
6364
6465
multimaster.max_nodes = 3

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/6247ad75b6abbf5d251e2907e320d4d8526af54f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy