> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).
>
>
> For information about access to this release, see the [access
> request page](https://forms.gle/zxuHekMtV67Bw9Av9).

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

- [Current (18.4.0)](https://docs.cloud.google.com/alloydb/omni/linux/current/docs/configure-database-flags.md.txt)
- [18.4.0](https://docs.cloud.google.com/alloydb/omni/linux/18.4.0/docs/configure-database-flags.md.txt)
- [18.3.0](https://docs.cloud.google.com/alloydb/omni/linux/18.3.0/docs/configure-database-flags.md.txt)
- [18.1.1](https://docs.cloud.google.com/alloydb/omni/linux/18.1.1/docs/configure-database-flags.md.txt)
- [18.1.0](https://docs.cloud.google.com/alloydb/omni/linux/18.1.0/docs/configure-database-flags.md.txt)
- [17.5.0](https://docs.cloud.google.com/alloydb/omni/linux/17.5.0/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/linux/17.5.0/docs/reference/database-flags.md.txt).

## Update a parameter in AlloyDB Omni using RPM

In an AlloyDB Omni using RPM installation, 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/linux/17.5.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 by restarting the AlloyDB Omni service:

   ```bash
   sudo systemctl restart alloydbomni17
   ```