PG_AUTOCTL_DROP_MONITOR(1)

πŸ“¦
version 2.1 Β· 2 versions
, in fedora 43, fedora 44

πŸ’… pg_autoctl drop monitor πŸ’…

okay bestie, so this is the pg_autoctl drop monitor page from the pg_auto_failover manual, section 1. sit down, grab a strawberry πŸ“, and let's get into it.

✨ NAME ✨

pg_autoctl drop monitor β€” literally what it says on the tin, and also, more dramatically:

pg_autoctl drop monitor β€” Drop the pg_auto_failover monitor. that's the whole vibe. we are removing the monitor. bye πŸ‘‹


🌸 SYNOPSIS 🌸

so, funny thing β€” the way this is written, the command "allows to review all the replication settings of a given formation (defaults to 'default' as usual)". yes, i know, that's what the page says and i'm not about to change it, i just report the lore fr fr. anyway here's the usage:

usage: pg_autoctl drop monitor [ --pgdata --destroy ]

--pgdata      path to data directory
--destroy     also destroy Postgres database

look at her. two options. simple. clean. iconic.


πŸŽ€ OPTIONS πŸŽ€

  • --pgdata β€” this is where the local Postgres node that's being managed lives, i.e. its data directory location. if you don't pass it, it just defaults to the PGDATA environment variable. and heads up: use --monitor when you want to connect to a monitor from literally anywhere, instead of using the monitor URI that a local Postgres node managed with pg_autoctl would use. iykyk πŸ’…
  • --destroy β€” ngl this one is the main character. by default, pg_autoctl drop monitor does not remove the Postgres database for the monitor. so it's like, dropping the monitor but the database is still sitting there. but when you throw --destroy in there? the Postgres installation gets deleted too. gone. no cap. πŸ”₯
⚠️ real talk bestie β€” --destroy deletes your Postgres installation. that is not a drill, that is not a vibe, that's permanent. double-check before you hit enter, okay? 🫢

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • PGDATA Postgres directory location. you can use this instead of the --pgdata option. same thing, different font. ✨
  • XDG_CONFIG_HOME the pg_autoctl command keeps its configuration files in the standard place, XDG_CONFIG_HOME. see the XDG Base Directory Specification if you want the deep lore. πŸ“š
  • XDG_DATA_HOME the pg_autoctl command keeps its internal states files in the standard place, XDG_DATA_HOME, which defaults to ~/.local/share. see the XDG Base Directory Specification. πŸ‘‘

🌈 AUTHOR 🌈

Microsoft πŸ‘‘

Copyright (c) Microsoft Corporation. All rights reserved.


okay that's the whole page, bestie, you ate that 🍽️✨

this was 2.1, dated Jan 18, 2025, and it's the PG_AUTOCTL DROP MONITOR(1) page from the pg_auto_failover manual β€” mwah, go forth and drop responsibly πŸ’–πŸ¦‹

πŸ“¦ where this page comes from