PG_AUTOCTL GET FORMATION NUMBER-SYNC-STANDBYS(1)

πŸ’– pg_autoctl get formation number-sync-standbys πŸ’–

okay so bestie, welcome to the pg_autoctl manual page for pg_autoctl get formation number-sync-standbys ✨ this is your girl for peeking at the number_sync_standbys setting of a formation, straight from the monitor πŸ‘‘


🌸 NAME 🌸

pg_autoctl get formation number-sync-standbys β€” pg_autoctl get formation number-sync-standbys

pg_autoctl get formation number-sync-standbys β€” get number_sync_standbys for a formation from the monitor πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

this command prints the pg_autoctl replication settings for number sync standbys, like:

usage: pg_autoctl get formation number-sync-standbys  [ --pgdata ] [ --json ] [ --formation ]

--pgdata      path to data directory
--json        output data in the JSON format
--formation   pg_auto_failover formation

✨ DESCRIPTION ✨

See also pg_autoctl show settings for the full list of replication settings πŸ‘€ (iykyk, go check that one out too).


πŸŽ€ OPTIONS πŸŽ€

  • --pgdata β€” where the Postgres node being managed locally lives. Defaults to the environment variable PGDATA. Use --monitor to connect to a monitor from anywhere, rather than the monitor URI used by a local Postgres node managed with pg_autoctl 🫢
  • --json β€” output JSON formatted data πŸ“¦
  • --formation β€” show replication settings for given formation. Defaults to default ⭐

🌈 ENVIRONMENT 🌈

  • PGDATA β€” Postgres directory location. Can be used instead of the --pgdata option πŸ’œ
  • PG_AUTOCTL_MONITOR β€” Postgres URI to connect to the monitor node, can be used instead of the --monitor option πŸ”₯
  • XDG_CONFIG_HOME β€” the pg_autoctl command stores its configuration files in the standard place XDG_CONFIG_HOME. See the XDG Base Directory Specification πŸŽ€
  • XDG_DATA_HOME β€” the pg_autoctl command stores its internal states files in the standard place XDG_DATA_HOME, which defaults to ~/.local/share. See the XDG Base Directory Specification πŸ¦‹

πŸ’« EXAMPLES πŸ’«

$ pg_autoctl get formation number-sync-standbys
1

$ pg_autoctl get formation number-sync-standbys --json
{
    "number-sync-standbys": 1
}

πŸ‘‘ AUTHOR πŸ‘‘

Microsoft


Copyright (c) Microsoft Corporation. All rights reserved.


and that's the whole vibe bestie, no cap πŸ’… sending you off with all the love β€” this was pg_auto_failover version 2.2, dated Apr 07, 2025, and the manual section is PG_AUTOCTL G...SYNC-STANDBYS(1) 🫢✨ go get those sync standbys, you got this πŸ’–

πŸ“¦ where this page comes from