commit 208247998484ee70cff5f16050344d53bcc6bb42 Author: Ian Barwick Date: Fri Oct 26 11:09:21 2018 +0900 Clarify description of pg_promote function Note that it always returns TRUE if the "wait" parameter is set to false. diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 96d4541..422af61 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -19241,13 +19241,14 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup()); 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 + 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 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.