repmgr: add option --wait-sync for standby register

Causes repmgr to wait for the updated node record to propagate
to the standby before exiting. This can be used to ensure that
actions which depend on the standby's node record being synchronised
(such as starting repmgrd) are not carried out prematurely.

Addresses GitHub #103
This commit is contained in:
Ian Barwick
2016-09-28 14:04:59 +09:00
parent b7f20ee1f7
commit fa10fd8493
5 changed files with 136 additions and 21 deletions

View File

@@ -39,5 +39,7 @@
#define ERR_BAD_BACKUP_LABEL 17
#define ERR_SWITCHOVER_FAIL 18
#define ERR_BARMAN 19
#define ERR_REGISTRATION_SYNC 20
#endif /* _ERRCODE_H_ */