PG_AUTOCTL_GET_NODE_REPLICATION-QUORUM(1)
π pg_autoctl get node replication-quorum π
okay bestie, so this is a page out of the pg_auto_failover manual, and honestly? it's a little cutie. it lives in the pg_autoctl family and it does exactly one (1) thing, but it does it flawlessly. no cap.
β¨ NAME β¨
pg_autoctl get node replication-quorum β yeah that's the whole name, she's lowkey self-explanatory like that π«Ά
also answers to: pg_autoctl get replication-quorum β which, bestie, is the way you ask the monitor for the replication-quorum property. same energy, slightly shorter name. iykyk.
πΈ SYNOPSIS πΈ
this command prints the pg_autoctl replication quorum for a given node. that's it, that's the vibe:
usage: pg_autoctl get node replication-quorum [ --pgdata ] [ --json ] [ --formation ] [ --name ]
--pgdata path to data directory
--formation pg_auto_failover formation
--name pg_auto_failover node name
--json output data in the JSON format
look at her. four little flags. an icon π
π¦ DESCRIPTION π¦
okay so that's the whole thing, and if you wanna see the full list of replication settings β like, the entire menu, not just this one dish β go peek at pg_autoctl show settings. that's the plug. π
β¨ OPTIONS β¨
--pgdataβ the location of the Postgres node that's being managed locally. if you don't say anything, she defaults to the environment variablePGDATA. and hey, if you'd rather connect to a monitor from anywhere instead of using the monitor URI that a local Postgres node managed withpg_autoctlis using β use--monitorfor that. π--jsonβ outputs the data all formatted in JSON. pretty, structured, machine-readable, we love her. β¨--formationβ shows replication settings for the given formation. defaults todefault. yes bestie,defaultis the default, the most default to ever default. π--nameβ shows replication settings for the given node, picked out by name. hi node, we see you. π
π ENVIRONMENT π
PGDATAβ Postgres directory location. you can use this instead of the--pgdataoption. lowkey a shortcut, highkey valid.PG_AUTOCTL_MONITORβ a 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. she's tidy like that.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. a place for everything and everything in its place fr fr. π§
π EXAMPLES π
watch her work, bestie:
$ pg_autoctl get node replication-quorum --name node1
true
just true. no notes. slay. π
and now with the JSON glow-up:
$ pg_autoctl get node replication-quorum --name node1 --json
{
"name": "node1",
"replication-quorum": true
}
ate and left no crumbs π
π AUTHOR π
Microsoft
π COPYRIGHT π
Copyright (c) Microsoft Corporation. All rights reserved.
real talk though bestie: everything above is exactly as written, no vibes-based guesses. don't invent flags, don't skip flags, just use them. mwah. ππ
and that's the whole page!! this one came from version 2.1 of pg_auto_failover, dated Jan 18, 2025. go forth and check your replication quorum, you main character. πβ¨π«Ά
π¦ 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