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_names, the processes will wait for synchronous replication forever.
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.
What do you think about this?
--
Zhang Wenjie