Support for N synchronous standby servers - Mailing list pgsql-hackers

From Michael Paquier
Subject Support for N synchronous standby servers
Date
Msg-id CAB7nPqR9c84ig0ZUvhMQAMq53VQsD4rC82vYci4Dr27PVOFf9w@mail.gmail.com
Whole thread Raw
Responses Re: Support for N synchronous standby servers
Re: Support for N synchronous standby servers
List pgsql-hackers
Hi all,

Please find attached a patch to add support of synchronous replication
for multiple standby servers. This is controlled by the addition of a
new GUC parameter called synchronous_standby_num, that makes server
wait for transaction commit on the first N standbys defined in
synchronous_standby_names. The implementation is really
straight-forward, and has just needed a couple of modifications in
walsender.c for pg_stat_get_wal_senders and syncrep.c.

When a process commit is cancelled manually by user or when
ProcDiePending shows up, the message returned to user does not show
the list of walsenders where the commit has not been confirmed as it
partially confirmed. I have not done anything for that but let me know
if that would be useful. This would need a scan of the walsenders to
get their application_name.

Thanks,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: David G Johnston
Date:
Subject: Re: 9.4 pg_restore --help changes
Next
From: Guillaume Lelarge
Date:
Subject: Re: PostgreSQL vs oracle doing 1 million sqrts am I doing it wrong?