如何在 Azure PostgreSQL 上编辑 postgresql.conf?

How to Edit postgresql.conf on Azure PostgreSQL?

我需要将 log_hostname 更改为关闭,以尝试按照建议 here 解决性能问题。如何访问 Azure PostgreSQL 实例的 postgresql.conf 文件?

log_hostname 不是 GUI 中 Server Parameters 下可用的参数之一。

如何编辑?是否可以从 pgAdmin 以某种方式访问​​它?


编辑:嗯,我问的可能不可能:

Not all PostgreSQL parameters are available for you to reconfigure in Azure Database for PostgreSQL. If a PostgreSQL parameter is not listed in your server's Azure portal Server parameters window, then it cannot be reconfigured from the default.

To review the current list of configurable parameters, navigate to the Server parameters window in the Azure portal. A few Postgres parameters require you to restart the server for them to take effect. These are indicated by the property 'Static'

.

你从那里的文档中摘录是正确的。

您也可以使用az cli搜索配置参数详情: https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-parameters-using-cli

或像您一样通过门户: https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-parameters-using-portal

但似乎 log_hostname 目前无法在 Azure 中进行更改: