PGQD(1)
π PGQD(1) β the maintenance daemon for PgQ, but make it a vibe π
okay bestie, sit down, hydrate, because we're about to talk about pgqd, the maintenance daemon for PgQ, straight outta the General Commands Manual. this is the whole page, nothing skipped, no crumbs left behind. π«Ά
β¨ NAME β¨
pgqd β maintenance daemon for PgQ. that's it, that's the name, iconic behavior honestly π
πΈ SYNOPSIS πΈ
the way you summon it, fr fr:
pgqd [-qvd] config
pgqd [-skr] config
pgqd --ini|-h|-V
like. three whole moods. pick your fighter. π
π¦ DESCRIPTION π¦
it runs both the ticker and the periodic maintenance for all databases inside one PostgreSQL cluster. yes, all of them. it's the main character of cluster upkeep and it does NOT do half measures. β¨
π OPTIONS π
every single flag, no gatekeeping:
-qβ do not log to stdout. quiet lil angel, shhh. π€«-vβ verbose log. it will yap (affectionately). π£οΈ-dβ daemonize the process. it leaves home and becomes its own independent being π§-sβ sendSIGINTto the running process to stop it. gentle but firm. π-kβ sendSIGTERMto the running process to stop it. less gentle, still valid. π₯-rβ sendSIGHUPto the running process to reload the config. glow-up via signal, slay. β¨-hβ show help. your friendly little map. πΊοΈ-Vβ show version. proof of existence. β--iniβ show a sample config. a starter pack, a template, a lil gift π
π CONFIGURATION π
the config file uses ini file syntax, like so:
[pgqd]
logfile = ~/log/pgqd.log
pidfile = ~/pid/pgqd.pid
and here are the options, all of them, in order, no skipping:
logfileβ the filename to log to. default: empty. πpidfileβ the filename to store the pid in; it's required when daemonizing. default: empty. don't forget it or the daemon gets lost in the sauce πbase_connstrβ the connect string, withoutdbname=. default: empty.initial_databaseβ the startup db used to query the other databases. default:template1database_listβ limit the ticker to specific databases. default: empty, which means all databases (go big or go home π )syslogβ whether to log into syslog. default:1syslog_identβ the name to use for syslog. default:pgqdcheck_periodβ how often to check for new databases, in seconds. default:60.retry_periodβ how often to flush the retry queue, in seconds. default:30maint_periodβ how often to do maintenance, in seconds. default:120ticker_periodβ how often to run the ticker, in seconds. default:1
π INSTALL π
pgqd uses an autoconf based build system, so it's giving classic, it's giving timeless:
./configure --prefix=/opt
make
make install
heads up bestie: the dependencies arelibeventandpython3-docutils. get those first or the build will simply not. π
π SEE ALSO π
ngl there's nothing else listed here. just you, pgqd, and the cluster. iykyk. π¦
and that's the whole page, bestie β signed off from the General Commands Manual, page PGQD(1), no cap. go keep that cluster cute. periodt. πβ¨π
π¦ where this page comes from
- debian trixie: pgqd 3.5-2 Β· ISC
- ubuntu noble: pgqd 3.5-1build3 Β· ISC
- ubuntu questing: pgqd 3.5-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms