PG_AUTOCTL_GET_FORMATION_NUMBER-SYNC-STANDBYS(1)
π 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 variablePGDATA. Use--monitorto connect to a monitor from anywhere, rather than the monitor URI used by a local Postgres node managed withpg_autoctl. πΈ--jsonβ Output JSON formatted data. no cap, it just hands you the JSON. β¨--formationβ Show replication settings for given formation. Defaults todefault. π
β¨ ENVIRONMENT β¨
PGDATAβ Postgres directory location. Can be used instead of the--pgdataoption. πPG_AUTOCTL_MONITORβ Postgres URI to connect to the monitor node, can be used instead of the--monitoroption. π°οΈXDG_CONFIG_HOMEβ Thepg_autoctlcommand stores its configuration files in the standard placeXDG_CONFIG_HOME. See the XDG Base Directory Specification. πXDG_DATA_HOMEβ Thepg_autoctlcommand stores its internal states files in the standard placeXDG_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 β¨
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
- fedora 43: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- fedora 44: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms