PG_AUTOCTL DROP MONITOR(1)
π pg_autoctl drop monitor β from the pg_auto_failover manual set
okay bestie, so this is the page for pg_autoctl drop monitor. yes, the whole manual is pg_auto_failover, and this is the lil corner of it that handles yeeting a monitor. let's get into it π«Ά
β¨ NAME β¨
pg_autoctl drop monitor β pg_autoctl drop monitor
pg_autoctl drop monitor β Drop the pg_auto_failover monitor
π SYNOPSIS π
So this command lets you review all the replication settings of a given formation (and yeah, it defaults to 'default' as usual):
usage: pg_autoctl drop monitor [ --pgdata --destroy ]
--pgdata path to data directory
--destroy also destroy Postgres database
π OPTIONS π
--pgdataβ where the Postgres node that's being managed locally lives. It defaults to the environment variablePGDATA. And psst: use--monitorto connect to a monitor from literally anywhere, instead of the monitor URI that a local Postgres node managed withpg_autoctlwould use.--destroyβ by default, thepg_autoctl drop monitorcommands do not remove the Postgres database for the monitor. But when you throw--destroyin there, the Postgres installation gets deleted too. π so like, be sure, bestie.
π ENVIRONMENT π
PGDATAβ Postgres directory location. You can use this instead of the--pgdataoption.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.
no cap, that's the whole page. go drop that monitor (or don't, it's your data directory π)
version 2.2 Β· Apr 07, 2025 β mwah, that's a wrap, ily, go be a main character in your own cluster π β¨π¦
π¦ 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