Put the logic to decide which synchronous standby is active into a function.
This avoids duplicating the code.
Michael Paquier, reviewed by Simon Riggs and me
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b1332e98c441b40300670f55a4303bf69cd8b226
Modified Files
--------------
src/backend/replication/syncrep.c | 88 ++++++++++++++++++++++++-----------
src/backend/replication/walsender.c | 52 ++++++---------------
src/include/replication/syncrep.h | 4 ++
3 files changed, 79 insertions(+), 65 deletions(-)
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
✖
By continuing to browse this website, you agree to the use of cookies. Go to Privacy Policy.