postgresql.conf 文件中更新全局统一配置 (GUC) 参数,该文件适用于在虚拟机上运行 AlloyDB Omni 的环境。如需查看支持的标志列表,请参阅支持的数据库标志。
使用 RPM 在 AlloyDB Omni 中更新参数
在采用 RPM 安装方式的 AlloyDB Omni 中,您可以通过修改 postgresql.conf 文件来更新参数,如下所示:
找到用于 AlloyDB Omni 安装的
postgresql.conf配置文件。使用文本编辑器在
postgresql.conf中添加或更新数据库标志。例如,如需强制执行密码到期,请在
postgresql.conf文件中设置以下标志:password.enforce_expiration = ON添加或修改数据库标志后,请通过重启 AlloyDB Omni 服务来重新加载
postgresql.conf文件,以使更改生效:sudo systemctl restart alloydbomni17