PG_AUTOCTL_DROP_FORMATION(1)
β¨ NAME β¨
pg_autoctl drop formation β ok so this is a page from the pg_auto_failover manual, section 1, and it's about one very specific little slay of a command: pg_autoctl drop formation.
And what does it do, bestie? It drops a formation on the pg_auto_failover monitor. That's it. That's the whole vibe. π
π SYNOPSIS π
So when you run this, you're dropping a formation that already exists on the monitor:
usage: pg_autoctl drop formation [ --pgdata --formation ]
--pgdata path to data directory
--monitor pg_auto_failover Monitor Postgres URL
--formation name of the formation to drop
Likeβ¦ it's giving "short and sweet and slightly terrifying". π«Ά
πΈ OPTIONS πΈ
--pgdataβ where the Postgres node you're managing locally keeps its data directory. If you don't say anything, it defaults to whatever the environment variablePGDATAis set to. Pro move: use--monitorif you wanna connect to a monitor from literally anywhere, instead of being tied to the monitor URI that a local Postgres node managed withpg_autoctlis using. β¨--monitorβ the Postgres URI you use to connect to the monitor. Heads up: it must use theautoctl_nodeusername and it has to target thepg_auto_failoverdatabase name. And if you forgot what that URI even is, you can just show it from the monitor node with the commandpg_autoctl show uri. No cap. π₯--formationβ the name of the formation you want to drop from the monitor. That's the one. That's the whole point of this command. π
π ENVIRONMENT π
PGDATAβ the Postgres directory location. You can use this instead of the--pgdataoption. Same energy, different spelling.PG_AUTOCTL_MONITORβ the Postgres URI used to connect to the monitor node. Use it 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. ποΈ
π AUTHOR π
Microsoft
π COPYRIGHT π
Copyright (c) Microsoft Corporation. All rights reserved.
ok and for the lil sign-off moment you've all been waiting for: this whole page is from pg_auto_failover 2.1, dated Jan 18, 2025 β go drop that formation responsibly, bestie, mwah πβ¨π
π¦ 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