PG_AUTOCTL GET NODE REPLICATION-QUORUM(1)
π NAME π
pg_autoctl get node replication-quorum β bestie, this is the glow-up command that pulls the replication-quorum property straight off the monitor, and it's part of the pg_auto_failover family of tools (manual section 1, iykyk).
There's also a shorter lil' alias for it:
pg_autoctl get replication-quorumβ same vibe, gets thereplication-quorumproperty from the monitor.
β¨ SYNOPSIS β¨
This command prints the pg_autoctl replication quorum for a given node, no cap:
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
π¦ DESCRIPTION π¦
Okay so real talk β if you wanna see the whole menu of replication settings, go check out pg_autoctl show settings. This command is just the one dish: the replication-quorum. π
π OPTIONS π
--pgdataβ where the Postgres node you're managing locally keeps its data directory. Defaults to whatever thePGDATAenvironment variable says. Pro tip: use--monitorif you wanna connect to a monitor from literally anywhere, instead of using the monitor URI that a local Postgres node managed withpg_autoctlwould use. π«Ά--jsonβ spits the data out in JSON format, for when you want it machine-readable and chic.--formationβ shows the replication settings for the formation you name. Defaults todefault, bestie.--nameβ shows the replication settings for the node you pick, selected by name. π
πΈ ENVIRONMENT πΈ
PGDATAβ the Postgres directory location. You can use this instead of the--pgdataoption. Iconic shortcut energy.PG_AUTOCTL_MONITORβ the Postgres URI used 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 place,XDG_CONFIG_HOME. See the XDG Base Directory Specification.XDG_DATA_HOMEβ thepg_autoctlcommand stores its internal states files in the standard place,XDG_DATA_HOME, which defaults to~/.local/share. See the XDG Base Directory Specification.
π EXAMPLES π
Just asking for the quorum like a normal person:
$ pg_autoctl get node replication-quorum --name node1
true
And now the same thing but make it JSON:
$ pg_autoctl get node replication-quorum --name node1 --json
{
"name": "node1",
"replication-quorum": true
}
π AUTHOR π
Microsoft
π COPYRIGHT π
Copyright (c) Microsoft Corporation. All rights reserved.
And that's the whole page, bestie β no crumbs left. This was pg_autoctl get node replication-quorum, manual section 1, shipped with pg_auto_failover version 2.2, dated Apr 07, 2025. Slay, go check your quorum. πβ¨π
π¦ where this page comes from
- debian trixie: pg-auto-failover-cli 2.2-2 Β· PostgreSQL
- ubuntu questing: pg-auto-failover-cli 2.2-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms