美文网首页
PostgreSQL: How to reload config

PostgreSQL: How to reload config

作者: 旭娃 | 来源:发表于2019-03-22 10:45 被阅读0次

source url: https://www.heatware.net/databases/postgresql-reload-config-without-restarting/

If you are making modifications to the Postgres configuration file postgresql.conf (or similar), and you want to new settings to take effect without needing to restart the entire database, there are two ways to accomplish this.

Option 1: From the command-line shell

su - postgres

/usr/bin/pg_ctl reload

Option 2: Using SQL

SELECT pg_reload_conf();

Using either option will not interrupt any active queries or connections to the database, thus applying these changes seemlessly.

相关文章

网友评论

      本文标题:PostgreSQL: How to reload config

      本文链接:https://www.haomeiwen.com/subject/kuhlvqtx.html