PG_AUTOCTL STATUS(1)
β¨ pg_autoctl status β the vibe check for your service β¨
okay bestie, so this is a page from the pg_auto_failover manual, and it's all about pg_autoctl status. She's a queen. She tells you what's up. π
πΈ NAME πΈ
pg_autoctl status β yes, that's the whole thing, that's the name, we love a minimal icon
pg_autoctl status β Display the current status of the pg_autoctl service π
π SYNOPSIS π
This command outputs the current process status for the pg_autoctl service running for the given --pgdata location. That's it. That's the whole job. And she eats every time. π₯
usage: pg_autoctl status [ --pgdata ] [ --json ]
--pgdata path to data directory
--json output data in the JSON format
π OPTIONS π
--pgdataβ the location of the Postgres node being managed locally. If you don't say anything, she defaults to the environment variablePGDATA. she's like "fine, I'll figure it out myself" π--jsonβ outputs JSON formatted data instead of a table formatted list. for when you want the receipts in machine-readable form, no cap π§
π¦ ENVIRONMENT π¦
PGDATAβ Postgres directory location. Can be used instead of the--pgdataoption. lowkey the same thing, just vibes-based πPG_AUTOCTL_MONITORβ Postgres URI to connect to the monitor node. that's the group chat she checks in with π¬XDG_CONFIG_HOMEβ thepg_autoctlcommand stores its configuration files in the standard placeXDG_CONFIG_HOME. See the XDG Base Directory Specification. very "I have a designated spot for everything" energy β¨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. her inner thoughts live there π
π EXAMPLE π
first up, the classic, no extra toppings:
$ pg_autoctl status --pgdata node1
11:26:30 27248 INFO pg_autoctl is running with pid 26618
11:26:30 27248 INFO Postgres is serving PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" on port 5501 with pid 26725
and now with the --json serve, because sometimes you want it structured, periodt:
$ pg_autoctl status --pgdata node1 --json
11:26:37 27385 INFO pg_autoctl is running with pid 26618
11:26:37 27385 INFO Postgres is serving PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" on port 5501 with pid 26725
{
"postgres": {
"pgdata": "\/Users\/dim\/dev\/MS\/pg_auto_failover\/tmux\/node1",
"pg_ctl": "\/Applications\/Postgres.app\/Contents\/Versions\/12\/bin\/pg_ctl",
"version": "12.3",
"host": "\/tmp",
"port": 5501,
"proxyport": 0,
"pid": 26725,
"in_recovery": false,
"control": {
"version": 0,
"catalog_version": 0,
"system_identifier": "0"
},
"postmaster": {
"status": "ready"
}
},
"pg_autoctl": {
"pid": 26618,
"status": "running",
"pgdata": "\/Users\/dim\/dev\/MS\/pg_auto_failover\/tmux\/node1",
"version": "1.5.0",
"semId": 196609,
"services": [
{
"name": "postgres",
"pid": 26625,
"status": "running",
"version": "1.5.0",
"pgautofailover": "1.5.0.1"
},
{
"name": "node-active",
"pid": 26626,
"status": "running",
"version": "1.5.0",
"pgautofailover": "1.5.0.1"
}
]
}
}
like?? the detail?? the range?? we're obsessed ππ
π AUTHOR π
Microsoft
π«Ά COPYRIGHT π«Ά
Copyright (c) Microsoft Corporation. All rights reserved.
and that's the whole page, bestie β this was PG_AUTOCTL STATUS(1) from pg_auto_failover, version 2.2, dated Apr 07, 2025. go run pg_autoctl status on your own node and tell me what she says π
β¨πΈ
π¦ 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