简体   繁体   English

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

[英]How to Edit postgresql.conf on Azure PostgreSQL?

I need to change log_hostname to off, in an attempt to fix a performance issue as recommended here .我需要将log_hostname更改为 off,以尝试按照此处的建议修复性能问题。 How do I access the postgresql.conf file for an Azure PostgreSQL instance?如何访问 Azure PostgreSQL 实例的postgresql.conf文件?

log_hostname is NOT one of the parameters made available under Server Parameters in the GUI. log_hostname不是 GUI 中Server Parameters下提供的Server Parameters之一。

How do I edit it?我如何编辑它? Is it somehow accessible from pgAdmin?是否可以从 pgAdmin 以某种方式访问​​它?


Edit: Hmm, what I am asking might not be possible:编辑:嗯,我问的可能是不可能的:

Not all PostgreSQL parameters are available for you to reconfigure in Azure Database for PostgreSQL.并非所有 PostgreSQL 参数都可供你在 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.如果 PostgreSQL 参数未列在服务器的 Azure 门户服务器参数窗口中,则无法从默认值重新配置它。

To review the current list of configurable parameters, navigate to the Server parameters window in the Azure portal.若要查看当前的可配置参数列表,请导航到 Azure 门户中的“服务器参数”窗口。 A few Postgres parameters require you to restart the server for them to take effect.一些 Postgres 参数需要您重新启动服务器才能生效。 These are indicated by the property 'Static'这些由属性“静态”指示

. .

You are correct with you exceprt from the documentation there.除了那里的文档之外,您是正确的。

You can also use az cli to search through the configuration parameter details: https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-parameters-using-cli您还可以使用az cli搜索配置参数详细信息: https : //docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-parameters-using-cli

Or through the portal as you have done: https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-parameters-using-portal或者通过您所做的门户: https : //docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-parameters-using-portal

But it appears that log_hostname is not something available to change within Azure at the moment:但目前似乎无法在 Azure 中更改log_hostname az cli postgres

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM