*** a/doc/src/sgml/high-availability.sgml --- b/doc/src/sgml/high-availability.sgml *************** *** 1161,1166 **** synchronous_standby_names = '2 (s1, s2, s3)' --- 1161,1170 ---- s2 fails. s4 is an asynchronous standby since its name is not in the list. + + The synchronous states of standby servers can be viewed using + the pg_stat_replication view. + *************** *** 1235,1240 **** synchronous_standby_names = '2 (s1, s2, s3)' --- 1239,1246 ---- will increase according to the length of time the standby has been down. The standby is only able to become a synchronous standby once it has reached streaming state. + This state can be viewed using + the pg_stat_replication view. *** a/doc/src/sgml/monitoring.sgml --- b/doc/src/sgml/monitoring.sgml *************** *** 1357,1363 **** SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i state text ! Current WAL sender state sent_location --- 1357,1389 ---- state text ! Current WAL sender state. ! Possible values are: ! ! ! ! startup: This WAL sender is starting up. ! ! ! ! ! catchup: This WAL sender's connected standby is ! catching up with the primary. ! ! ! ! ! streaming: This WAL sender is streaming changes ! after its connected standby server has caught up with the primary. ! ! ! ! ! backup: This WAL sender is sending a backup. ! ! ! ! sent_location *************** *** 1391,1397 **** SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i sync_state text ! Synchronous state of this standby server --- 1417,1444 ---- sync_state text ! Synchronous state of this standby server. ! Possible values are: ! ! ! ! async: This standby server is asynchronous. ! ! ! ! ! potential: This standby server is now asynchronous, ! but can potentially become synchronous if one of current ! synchronous ones fails. ! ! ! ! ! sync: This standby server is synchronous. ! ! ! !