postgresql.conf file for environments running
AlloyDB Omni on a VM. For a list of supported flags, see
Supported database flags.
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:
Locate the
postgresql.confconfiguration file for your installation of AlloyDB Omni.Use a text editor to add or update a database flag in
postgresql.conf.For example, to enforce password expiration, set the following flag in the
postgresql.conffile:password.enforce_expiration = ONAfter your database flags are added or edited, reload the
postgresql.conffile for the changes to take effect. For example, if you installed AlloyDB Omni using Docker, run the following to restart your Docker instance and reloadpostgresql.conf:docker restart CONTAINER-NAME
For more information, see Setting parameters in PostgreSQL documentation.