Check the number of potential synchronous standbys

Поиск
Список
Период
Сортировка
От 张文杰
Тема Check the number of potential synchronous standbys
Дата
Msg-id tencent_9102665063EC73FE8A037FEA09563D832306@qq.com
обсуждение исходный текст
Ответы Re: Check the number of potential synchronous standbys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi all,

When the number of potential synchronous standbys is smaller than num_sync, such as 'FIRST 3 (1,2)', 'ANY 4 (1,2,3)' in the synchronous_standby_namesthe processes will wait for synchronous replication forever. 
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #2a00ff}

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #14171c}

Obviously, it's not expected. I think return false and a error message may be better. And attached is a patch that implements the simple check. 


p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #14171c}

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #14171c}

What do you think about this?


--
Zhang Wenjie

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #14171c} span.s1 {font: 14.0px '.PingFang SC'} p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #14171c} p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #14171c} p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #14171c}
Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: POC: Cleaning up orphaned files using undo logs
Следующее
От: Amit Khandekar
Дата:
Сообщение: Re: Minimal logical decoding on standbys