mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Add pg_promote function
This function is able to promote a standby with this new SQL-callable function. Execution access can be granted to non-superusers so that failover tools can observe the principle of least privilege. Catalog version is bumped. Author: Laurenz Albe Reviewed-by: Michael Paquier, Masahiko Sawada Discussion: https://postgr.es/m/6e7c79b3ec916cf49742fb8849ed17cd87aed620.camel@cybertec.at
This commit is contained in:
@@ -1471,14 +1471,17 @@ synchronous_standby_names = 'ANY 2 (s1, s2, s3)'
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To trigger failover of a log-shipping standby server,
|
||||
run <command>pg_ctl promote</command> or create a trigger
|
||||
file with the file name and path specified by the <varname>trigger_file</varname>
|
||||
setting in <filename>recovery.conf</filename>. If you're planning to use
|
||||
<command>pg_ctl promote</command> to fail over, <varname>trigger_file</varname> is
|
||||
not required. If you're setting up the reporting servers that are
|
||||
only used to offload read-only queries from the primary, not for high
|
||||
availability purposes, you don't need to promote it.
|
||||
To trigger failover of a log-shipping standby server, run
|
||||
<command>pg_ctl promote</command>, call <function>pg_promote</function>,
|
||||
or create a trigger file with the file name and path specified by the
|
||||
<varname>trigger_file</varname> setting in
|
||||
<filename>recovery.conf</filename>. If you're planning to use
|
||||
<command>pg_ctl promote</command> or to call
|
||||
<function>pg_promote</function> to fail over,
|
||||
<varname>trigger_file</varname> is not required. If you're
|
||||
setting up the reporting servers that are only used to offload read-only
|
||||
queries from the primary, not for high availability purposes, you don't
|
||||
need to promote it.
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
|
Reference in New Issue
Block a user