PG_AUTOCTL SHOW SETTINGS(1) | pg_auto_failover | PG_AUTOCTL SHOW SETTINGS(1) |
pg_autoctl show settings - pg_autoctl show settings
pg_autoctl show settings - Print replication settings for a formation from the monitor
This command allows to review all the replication settings of a given formation (defaults to 'default' as usual):
usage: pg_autoctl show settings [ --pgdata ] [ --json ] [ --formation ] --pgdata path to data directory --monitor pg_auto_failover Monitor Postgres URL --json output data in the JSON format --formation pg_auto_failover formation
See also pg_autoctl get formation settings which is a synonym.
The output contains setting and values that apply at different contexts, as shown here with a formation of four nodes, where node_4 is not participating in the replication quorum and also not a candidate for failover:
$ pg_autoctl show settings
Context | Name | Setting | Value
----------+---------+---------------------------+-------------------------------------------------------------
formation | default | number_sync_standbys | 1
primary | node_1 | synchronous_standby_names | 'ANY 1 (pgautofailover_standby_3, pgautofailover_standby_2)'
node | node_1 | replication quorum | true
node | node_2 | replication quorum | true
node | node_3 | replication quorum | true
node | node_4 | replication quorum | false
node | node_1 | candidate priority | 50
node | node_2 | candidate priority | 50
node | node_3 | candidate priority | 50
node | node_4 | candidate priority | 0
Three replication settings context are listed:
This command gives an overview of all the settings that apply to the current formation.
Defaults to the value of the environment variable PG_AUTOCTL_MONITOR.
PGDATA
PG_AUTOCTL_MONITOR
XDG_CONFIG_HOME
XDG_DATA_HOME
$ pg_autoctl show settings
Context | Name | Setting | Value
----------+---------+---------------------------+-------------------------------------------------------------
formation | default | number_sync_standbys | 1
primary | node1 | synchronous_standby_names | 'ANY 1 (pgautofailover_standby_2, pgautofailover_standby_3)'
node | node1 | candidate priority | 50
node | node2 | candidate priority | 50
node | node3 | candidate priority | 50
node | node1 | replication quorum | true
node | node2 | replication quorum | true
node | node3 | replication quorum | true
Microsoft
Copyright (c) Microsoft Corporation. All rights reserved.
November 6, 2022 | 2.0 |