mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Add new replication mode synchronous_commit = 'write'.
Replication occurs only to memory on standby, not to disk, so provides additional performance if user wishes to reduce durability level slightly. Adds concept of multiple independent sync rep queues. Fujii Masao and Simon Riggs
This commit is contained in:
@@ -1410,7 +1410,8 @@ WalSndShmemInit(void)
|
||||
/* First time through, so initialize */
|
||||
MemSet(WalSndCtl, 0, WalSndShmemSize());
|
||||
|
||||
SHMQueueInit(&(WalSndCtl->SyncRepQueue));
|
||||
for (i = 0; i < NUM_SYNC_REP_WAIT_MODE; i++)
|
||||
SHMQueueInit(&(WalSndCtl->SyncRepQueue[i]));
|
||||
|
||||
for (i = 0; i < max_wal_senders; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user