Select a documentation version: <button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">15.12.0</button>

- [Current (18.4.0)](https://docs.cloud.google.com/alloydb/omni/containers/current/docs/configure-database-flags.md.txt)
- [18.4.0](https://docs.cloud.google.com/alloydb/omni/containers/18.4.0/docs/configure-database-flags.md.txt)
- [18.3.0](https://docs.cloud.google.com/alloydb/omni/containers/18.3.0/docs/configure-database-flags.md.txt)
- [18.1.0](https://docs.cloud.google.com/alloydb/omni/containers/18.1.0/docs/configure-database-flags.md.txt)
- [17.10.0](https://docs.cloud.google.com/alloydb/omni/containers/17.10.0/docs/configure-database-flags.md.txt)
- [17.9.0](https://docs.cloud.google.com/alloydb/omni/containers/17.9.0/docs/configure-database-flags.md.txt)
- [17.7.0](https://docs.cloud.google.com/alloydb/omni/containers/17.7.0/docs/configure-database-flags.md.txt)
- [17.5.0](https://docs.cloud.google.com/alloydb/omni/containers/17.5.0/docs/configure-database-flags.md.txt)
- [16.14.0](https://docs.cloud.google.com/alloydb/omni/containers/16.14.0/docs/configure-database-flags.md.txt)
- [16.13.0](https://docs.cloud.google.com/alloydb/omni/containers/16.13.0/docs/configure-database-flags.md.txt)
- [16.11.0](https://docs.cloud.google.com/alloydb/omni/containers/16.11.0/docs/configure-database-flags.md.txt)
- [16.9.0](https://docs.cloud.google.com/alloydb/omni/containers/16.9.0/docs/configure-database-flags.md.txt)
- [16.8.0](https://docs.cloud.google.com/alloydb/omni/containers/16.8.0/docs/configure-database-flags.md.txt)
- [16.3.0](https://docs.cloud.google.com/alloydb/omni/containers/16.3.0/docs/configure-database-flags.md.txt)
- [15.18.0](https://docs.cloud.google.com/alloydb/omni/containers/15.18.0/docs/configure-database-flags.md.txt)
- [15.17.0](https://docs.cloud.google.com/alloydb/omni/containers/15.17.0/docs/configure-database-flags.md.txt)
- [15.15.0](https://docs.cloud.google.com/alloydb/omni/containers/15.15.0/docs/configure-database-flags.md.txt)
- [15.13.0](https://docs.cloud.google.com/alloydb/omni/containers/15.13.0/docs/configure-database-flags.md.txt)
- [15.12.0](https://docs.cloud.google.com/alloydb/omni/containers/15.12.0/docs/configure-database-flags.md.txt)
- [15.7.1](https://docs.cloud.google.com/alloydb/omni/containers/15.7.1/docs/configure-database-flags.md.txt)
- [15.7.0](https://docs.cloud.google.com/alloydb/omni/containers/15.7.0/docs/configure-database-flags.md.txt)
- [15.5.5](https://docs.cloud.google.com/alloydb/omni/containers/15.5.5/docs/configure-database-flags.md.txt)

<br />

To configure a database parameter for AlloyDB Omni, you can update [Grand Unified Configuration (GUC) parameters](https://www.postgresql.org/docs/current/config-setting.html) in the `postgresql.conf` file for environments running AlloyDB Omni on a VM. For a list of supported flags, see [Supported database flags](https://docs.cloud.google.com/alloydb/omni/containers/15.12.0/docs/reference/database-flags.md.txt).

## Update a parameter in containerized AlloyDB Omni

In an AlloyDB Omni running on a VM, you can update a parameter by editing the `postgresql.conf` file as follows:

1. Locate the `postgresql.conf` configuration file for your installation of
   AlloyDB Omni.

2. Use a text editor to add or update a database flag in `postgresql.conf`.

   For example, to
   [enforce password expiration](https://docs.cloud.google.com/alloydb/omni/containers/15.12.0/docs/manage-password-policy.md.txt#enforce-password-expiration),
   set the following flag in the `postgresql.conf` file:

   ```bash
   password.enforce_expiration = ON
   ```
3. After your database flags are added or edited, reload the `postgresql.conf`
   file for the changes to take effect. For example, if you
   [installed AlloyDB Omni using Docker](https://docs.cloud.google.com/alloydb/omni/containers/15.12.0/docs/quickstart.md.txt#install-using-docker),
   run the following to restart your Docker instance and reload
   `postgresql.conf`:

   ```bash
   docker restart CONTAINER-NAME
   ```

For more
information, see
[Setting parameters](https://www.postgresql.org/docs/current/config-setting.html)
in PostgreSQL documentation.