boolean
- Promotes a physical standby server. Returns true
- if promotion is successful and false otherwise.
- With
wait set to
true, the
- default, the function waits until promotion is completed or
-
wait_seconds seconds have passed, otherwise the
- function returns immediately after sending the promotion signal to the
- postmaster. This function is restricted to superusers by default, but
- other users can be granted EXECUTE to run the function.
+ Promotes a physical standby server. With
wait
+ set to true (the default), the function waits until
+ promotion is completed or
wait_seconds seconds
+ have passed, and returns true if promotion is
+ successful and false otherwise.
+ If
wait is set to
false, the
+ function returns true immediately after sending
+ SIGUSR1 to the postmaster to trigger the promotion.
+ This function is restricted to superusers by default, but other users
+ can be granted EXECUTE to run the function.
|