Support for N synchronous standby servers

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Support for N synchronous standby servers
Дата
Msg-id CAB7nPqR9c84ig0ZUvhMQAMq53VQsD4rC82vYci4Dr27PVOFf9w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Support for N synchronous standby servers  (Fujii Masao <masao.fujii@gmail.com>)
Re: Support for N synchronous standby servers  (Rajeev rastogi <rajeev.rastogi@huawei.com>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: 9.4 pg_restore --help changes
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: PostgreSQL vs oracle doing 1 million sqrts am I doing it wrong?