pgagroal_databases.conf(5)
π pgagroal_databases.conf β the file formats manual bestie π
okay so real talk, this is the manual page for pgagroal_databases.conf(5), from the File Formats Manual section. It's the glow-up rules file for pgagroal, and we're gonna go through every single bit of it together, no skips, no gatekeeping. π«Ά
β¨ NAME β¨
pgagroal_databases.conf β the limits file for databases, users, or literally both, for pgagroal π
πΈ DESCRIPTION πΈ
So the pgagroal_databases.conf configuration file is where you define limits for a database, or a user, or both at the same time. It also does database aliases, which is lowkey iconic because it lets clients connect using alternative names for databases you've already configured. main character energy fr fr. π
π FORMAT π
Here's the tea on each field, bestie:
DATABASEβ tells you which database the rule is for. You can put a specific name, orallfor, you guessed it, all the databases. It can also include aliases, formatted like this:database_name=alias1,alias2,alias3β¨USERβ the user for the rule. Either a specific name orallfor all users.MAX_SIZEβ the maximum pool size for the entry.allfor all connections.INITIAL_SIZEβ the initial pool size for the entry. Default is0. Heads up, this one requires apgagroal_users.confconfiguration. πMIN_SIZEβ the minimum pool size for the entry. Default is0. Also requires apgagroal_users.confconfiguration.
π¦ DATABASE ALIASES π¦
Database aliases let clients connect using alternative names for a configured database. It's giving useful for application migrations, multi-tenancy, or just handing out names that are actually user-friendly. so cute. π
Aliases go in the DATABASE field, formatted exactly like: database_name=alias1,alias2,alias3
π ALIAS RULES (read these, bestie, don't skip) π
- Maximum 8 aliases per database
- Aliases must be globally unique across all database entries
- Alias names cannot conflict with any real database name
- Database names cannot conflict with any alias name
- The special database name
"all"cannot have aliases - Empty alias names are not allowed
When a client connects using an alias, pgagroal transparently maps it to the real database name for all backend operations. no cap, it just handles it for you. β¨
π₯ EXAMPLE π₯
#
# DATABASE [=alias, alias, ...] USER MAX_SIZE INITIAL_SIZE MIN_SIZE
#
all all all
production_db=prod,main myuser 10 5 2
development_db=dev,test,qa devuser 5 2 1
legacy_db legacyuser 8 3 1
So in this example:
- Clients can connect to
"production_db","prod", or"main"β all of them use the same backend database π - The development database has three aliases:
"dev","test", and"qa"π¦ - The legacy database has no aliases and uses the standard format. classic, we respect it.
π REPORTING BUGS π
pgagroal is maintained on GitHub at <https://github.com/pgagroal/pgagroal>
β COPYRIGHT β
pgagroal is licensed under the 3-clause BSD License.
π SEE ALSO π
pgagroal.conf(5), pgagroal_hba.conf(5), pgagroal_vault.conf(5), pgagroal(1), pgagroal-cli(1), pgagroal-admin(1), pgagroal-vault(1)
ok that's literally the whole page, you ate that π go configure something gorgeous, bestie π«Ά
pgagroal_databases.conf(5) β that's the footer, that's the whole vibe, and it's the file formats manual so you know it's official. slay, periodt, bye πβ¨π
π¦ 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