PG_AUTOCTL_GET_FORMATION_NUMBER-SYNC-STANDBYS(1)

πŸ“¦
version 2.1 Β· 2 versions
, in fedora 43, fedora 44

πŸ’– PG_AUTOCTL GET FORMATION NUMBER-SYNC-STANDBYS πŸ’–

okay bestie, so this is a page from pg_auto_failover, section 1 of the manual (the "user commands" section, iykyk). It's about pg_autoctl get formation number-sync-standbys and honestly? It's a little one, but it's a useful little one. πŸŽ€


✨ NAME ✨

pg_autoctl get formation number-sync-standbys β€” pg_autoctl get formation number-sync-standbys</p>

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


✨ SYNOPSIS ✨

This command prints a pg_autoctl replication settings for number sync standbys:

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

like, that's the whole vibe check right there. three little flags, one little number. slay. πŸ’…


✨ DESCRIPTION ✨

See also pg_autoctl show settings for the full list of replication settings. πŸ‘‘

fr fr, if you want the whole menu and not just the one item, go look at pg_autoctl show settings. this page is just the snack. πŸ“

✨ OPTIONS ✨

  • --pgdata β€” Location of the Postgres node being managed locally. 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. no cap, it just hands you the JSON. ✨
  • --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 ✨

the moment you've all been waiting for, the demo 🎬

$ pg_autoctl get formation number-sync-standbys
1

look at her. one line. one digit. main character energy, honestly. 😌

and now the glow-up version, with --json:

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

obsessed. the curly braces ate. 🫢


✨ AUTHOR ✨

Microsoft


Copyright (c) Microsoft Corporation. All rights reserved.


and that's the whole page bestie!! πŸ’– this was pg_auto_failover version 2.1, dated Jan 18, 2025 β€” so if you're reading this and the year is still giving 2025, you're right on time. periodt. 🌈⭐🧚

πŸ“¦ where this page comes from