PG_AUTOCTL_CONFIG_CHECK(1)
β¨ NAME β¨
ok so bestie, this is pg_autoctl config check β literally the vibe-check command for your pg_autoctl setup π
pg_autoctl config check β it checks your pg_autoctl configuration. that's it, that's the whole job π«Ά
πΈ SYNOPSIS πΈ
this command runs a very basic list of sanity checks on a pg_autoctl node setup, no cap:
usage: pg_autoctl config check [ --pgdata ] [ --json ]
--pgdata path to data directory
--json output data in the JSON format
π OPTIONS π
--pgdataβ where the Postgres node that's being managed locally lives. defaults to the environment variablePGDATA. and like, use--monitorto connect to a monitor from literally anywhere, instead of the monitor URI that a local Postgres node managed withpg_autoctlis using. iykyk β¨--jsonβ outputs the data in JSON format. iconic, honestly. π¦
π§ ENVIRONMENT π§
PGDATAβ Postgres directory location. you can use this instead of the--pgdataoption. slay.PG_AUTOCTL_MONITORβ Postgres URI to connect to the monitor node, can be used instead of the--monitoroption. periodt.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 π
ok watch this, main character energy:
$ pg_autoctl config check --pgdata node1
18:37:27 63749 INFO Postgres setup for PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" is ok, running with PID 5501 and port 99698
18:37:27 63749 INFO Connection to local Postgres ok, using "port=5501 dbname=demo host=/tmp"
18:37:27 63749 INFO Postgres configuration settings required for pg_auto_failover are ok
18:37:27 63749 WARN Postgres 12.1 does not support replication slots on a standby node
18:37:27 63749 INFO Connection to monitor ok, using "postgres://autoctl_node@localhost:5500/pg_auto_failover?sslmode=prefer"
18:37:27 63749 INFO Monitor is running version "1.5.0.1", as expected
pgdata: /Users/dim/dev/MS/pg_auto_failover/tmux/node1
pg_ctl: /Applications/Postgres.app/Contents/Versions/12/bin/pg_ctl
pg_version: 12.3
pghost: /tmp
pgport: 5501
proxyport: 0
pid: 99698
is in recovery: no
Control Version: 1201
Catalog Version: 201909212
System Identifier: 6941034382470571312
Latest checkpoint LSN: 0/6000098
Postmaster status: ready
like, look at all those INFOs just vibing π (and one lil WARN, we don't talk about her π)
π AUTHOR π
Microsoft
β COPYRIGHT β
Copyright (c) Microsoft Corporation. All rights reserved.
no cap, that's the whole page. go check your config bestie, you got this π«Άβ¨
this was pg_autoctl config check from the pg_auto_failover manual, version 2.1, dated Jan 18, 2025 β mwah, take care of her π
π
π¦ 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