Specifies a trigger file whose presence ends recovery in the
standby. Even if this value is not set, you can still promote
the standby using pg_ctl promote or calling
- pg_promote.
+ pg_promote().
This parameter can only be set in the postgresql.conf
file or on the server command line.
Standby mode is exited and the server switches to normal operation
- when pg_ctl promote is run or a trigger file is found
+ when pg_ctl promote is run,
+ pg_promote() is called, or a trigger file is found
(promote_trigger_file). Before failover,
any WAL immediately available in the archive or in pg_wal will be
restored, but no attempt is made to connect to the master.
To trigger failover of a log-shipping standby server, run
- pg_ctl promote, call pg_promote,
+ pg_ctl promote, call pg_promote(),
or create a trigger file with the file name and path specified by the
promote_trigger_file. If you're planning to use
pg_ctl promote or to call
- pg_promote to fail over,
+ pg_promote() to fail over,
promote_trigger_file 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