Skip to content

Document users.toml databases and all_databases settings#78

Merged
levkk merged 1 commit into
pgdogdev:mainfrom
davidxia:doc-users-all-databases
Jun 5, 2026
Merged

Document users.toml databases and all_databases settings#78
levkk merged 1 commit into
pgdogdev:mainfrom
davidxia:doc-users-all-databases

Conversation

@davidxia
Copy link
Copy Markdown
Contributor

@davidxia davidxia commented Jun 5, 2026

What

The users configuration page documents the singular database setting, but PgDog's user config also supports two related settings that are currently undocumented:

  • databases — a list of database clusters a user belongs to, so a single [[users]] entry can grant access to more than one database.
  • all_databases — grants the user access to every database defined in pgdog.toml. PgDog expands the entry into one user (and connection pool) per configured database.

Both fields exist in pgdog-config/src/users.rs and the users JSON schema, but aren't on the docs site.

Details

This PR adds sections for both, placed right after database to match the field order in the config struct. The notes capture the priority rules enforced by Users::check:

  • database takes priority over databases if both are set.
  • all_databases takes priority over both database and databases.

The users configuration page only documented the singular `database`
setting, but PgDog also supports `databases` (a list of clusters a user
belongs to) and `all_databases` (grant access to every configured
database). Document both, including how they interact with `database`.
@levkk levkk merged commit 6f69e1c into pgdogdev:main Jun 5, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants