It is not documented that pg_promote can exit standby mode
Masahiro Ikeda <ikedamsh@oss.nttdata.com>
From: ikedamsh <ikedamsh@oss.nttdata.com>
To: pgsql-hackers@postgresql.org
Date: 2020-04-17T04:11:31Z
Lists: pgsql-hackers
Attachments
- 0001-fix-doc-about-the-way-to-exit-standby-mode.patch (text/x-diff) patch 0001
Hi, The document(high-availability.sgml) says that there are only two ways to exit standby mode. 26.2.2. Standby Server Operation Standby mode is exited and the server switches to normal operation when pg_ctl promote is run or a trigger file is found (promote_trigger_file). But there is another way, by calling pg_promote function. I think we need to document it, doesn't it? I attached a patch. Please review and let me know your thoughts. Regards, Masahiro Ikeda
Commits
-
Fix function name in comment.
- 5e574d170e2e 14.0 landed
-
Mention pg_promote() as a method to trigger promotion in documentation.
- 67f82e966b52 13.0 landed