Skip to main content

pgagroal manual · How-to · upstream 2.1.0

Configuration generator

From the upstream pgagroal manual, rendered in the Elevarq documentation style. Single-sourced from the pinned pgagroal release.

pgagroal-config is a utility tool that helps users generate and manage their pgagroal configuration files. It is particularly useful for new users to set up a base configuration or for automation scripts to modify existing settings safely.

Overview

The tool provides several commands to interact with the configuration:

Usage

Initializing a Configuration

The most common use case is generating a fresh configuration:

Command:

pgagroal-config init

This will guide you through the process of defining the listener address, ports, logging, and your first PostgreSQL server.

For automated setups, you can use the quiet mode:

Example:

pgagroal-config -q -o pgagroal.conf init

Modifying the Configuration

Instead of manually editing the ini file and potentially making syntax errors, you can use the set command:

Example:

pgagroal-config set pgagroal.conf pgagroal log_level debug

This command ensures that:

Troubleshooting

If you need to verify what keys are available in a section:

Example:

pgagroal-config ls pgagroal.conf pgagroal

Or to check a specific value:

Example:

pgagroal-config get pgagroal.conf pgagroal metrics

Security

pgagroal-config follows the same security principles as pgagroal: