pgagroal-cli(1)
π pgagroal-cli π
okay bestie, say hi to pgagroal-cli, the command line utility for pgagroal β it lives in the General Commands Manual section of the manual pages, and it's literally your little remote control for the pooler. π
β¨ SYNOPSIS β¨
pgagroal-cli [ -c CONFIG_FILE ] [ COMMAND ]
πΈ DESCRIPTION πΈ
pgagroal-cli is a command line utility for pgagroal. that's the whole vibe fr fr β it's the CLI bestie that talks to your pooler so you don't have to. π¦
π OPTIONS π
these are the flags, no cap:
-c,--configCONFIG_FILE β sets the path to thepgagroal.conffile-h,--hostHOST β sets the host name-p,--portPORT β sets the port number-U,--userUSERNAME β sets the user name-P,--passwordPASSWORD β sets the password-L,--logfileFILE β sets the logfile-F,--formattext|json|raw β sets the output format-C,--compressnone|gz|zstd|lz4|bz2 β compresses the wire protocol-E,--encryptnone|aes|aes256|aes192|aes128 β encrypts the wire protocol-v,--verboseβ outputs a text string of the result-V,--versionβ displays version information-?,--helpβ displays help
π COMMANDS π
π flush [mode] [database]
flushes connections according to [mode]. the allowed modes are:
'gracefully'(default) β flushes all connections gracefully π'idle'β flushes only idle connections π΄'all'β flushes all connections. USE WITH CAUTION! π
if no [database] name is specified, it applies to all databases.
π ping
verifies if pgagroal is up and running, and checks connectivity to the configured PostgreSQL servers. with JSON output, the response includes per-server Host, Port, Status, Primary, and Behind on standbys. π
π enable [database]
enables the specified database, or all databases if none is specified β¨
π disable [database]
disables the specified database, or all databases if none is specified π
π shutdown [mode]
stops the pgagroal pooler. the [mode] can be:
'gracefully'(default): waits for active connections to quit π«Ά'immediate': forces connections to close and terminate π₯'cancel': avoids a previously issued'shutdown gracefully'π
π status [details]
status of pgagroal, with optional details. per-server fields match ping. details adds limits and per-connection rows. π
π switch-to <server>
switches to the specified primary server π
π conf <action>
manages the configuration. <action> can be:
'reload': issues a configuration reload π'ls': lists the configuration files used π'get': obtains information about a runtime configuration value β usage:conf get <parameter_name>π'set': modifies a configuration value β usage:conf set <parameter_name> <parameter_value>βοΈ
π clear <what>
resets either the Prometheus statistics or the specified server. <what> can be:
'server'(default) followed by a server name π₯οΈ- a server name on its own π·οΈ
'prometheus'to reset the Prometheus metrics π
π REPORTING BUGS π
pgagroal is licensed under the 3-clause BSD License.
π«Ά SEE ALSO π«Ά
pgagroal.conf(5), pgagroal_hba.conf(5), pgagroal_databases.conf(5), pgagroal_vault.conf(5), pgagroal(1), pgagroal-admin(1), pgagroal-vault(1)
and that's the whole page, bestie β this was pgagroal-cli(1) from the General Commands Manual, mwah π slay, go flush something (gracefully, obviously) πβ¨π
π¦ where this page comes from
- ubuntu stonking: pgagroal 2.1.0-1ubuntu1 Β· BSD-pgagroal
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms