Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/configuration/users.toml/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ icon: material/account-key

# Users configuration

This configuration controls which users are allowed to connect to PgDog. This is a TOML list so for each user, add a `[[users]]` section to `users.toml`. For example:
This configuration controls which users are allowed to connect to PgDog. Each regular user has a `[[users]]` section in `users.toml`. For example:

=== "users.toml"
```toml
Expand Down Expand Up @@ -176,3 +176,14 @@ A `schema_admin` database user is required for following features:

- [Sharding schema management](../../features/sharding/schema_management/manager.md)
- [Resharding](../../features/sharding/resharding/index.md#schema-admin)

## Admin database settings

`users.toml` can also contain an `[admin]` section. This is useful when the admin password should be kept separately from `pgdog.toml`.

```toml
[admin]
password = "hunter2"
```

When present, this section replaces the `[admin]` configuration in [`pgdog.toml`](../pgdog.toml/admin.md). It accepts the same `name`, `user`, and `password` settings. Any omitted settings use their [default values](../pgdog.toml/admin.md), rather than values from `pgdog.toml`.