PostgreSQL ALTER SYSTEM 修改系统配置

PostgreSQL About 326 words

说明

ALTER SYSTEM会写入到postgresql.auto.conf配置文件中,可通过ALTER SYSTEM RESET ALL初始化所有动态修改的系统设置。

重新加载配置

两种方法

执行重新加载 SQL

SELECT pg_reload_conf();

输出

postgres=# SELECT pg_reload_conf();
 pg_reload_conf
----------------
 t
(1 行记录)

命令行

pg_ctl reload

备注

只有超级管理员才能使用ALTER SYSTEM

参考

https://www.postgresql.org/docs/current/sql-altersystem.html

Views: 335 · Posted: 2023-10-22

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh