PG_AUTOCTL SHOW STANDBY-NAMES(1) | pg_auto_failover | PG_AUTOCTL SHOW STANDBY-NAMES(1) |
pg_autoctl show standby-names - pg_autoctl show standby-names
pg_autoctl show standby-names - Prints synchronous_standby_names for a given group
This command prints the current value for synchronous_standby_names for the primary Postgres server of the target group (default 0) in the target formation (default default), as computed by the monitor:
usage: pg_autoctl show standby-names [ --pgdata ] --formation --group
--pgdata path to data directory
--monitor pg_auto_failover Monitor Postgres URL
--formation formation to query, defaults to 'default'
--group group to query formation, defaults to all
--json output data in the JSON format
Defaults to the value of the environment variable PG_AUTOCTL_MONITOR.
PGDATA
PG_AUTOCTL_MONITOR
XDG_CONFIG_HOME
XDG_DATA_HOME
$ pg_autoctl show standby-names 'ANY 1 (pgautofailover_standby_2, pgautofailover_standby_3)' $ pg_autoctl show standby-names --json {
"formation": "default",
"group": 0,
"synchronous_standby_names": "ANY 1 (pgautofailover_standby_2, pgautofailover_standby_3)" }
Microsoft
Copyright (c) Microsoft Corporation. All rights reserved.
November 6, 2022 | 2.0 |