- PostgreSQL High Performance Cookbook
- Chitij Chauhan Dinesh Kumar
- 220字
- 2021-07-09 18:47:21
Reloading server configuration
In this recipe, we will talk about the command that can be used to reload the server configuration and its parameters.
Getting ready
If any of the server parameters come into effect after reloading the server configuration files, such as postgresql.conf
, then we need to reload the server configuration using the reload option of the pg_ctl
command.
How to do it...
We can use the following command to reload the server configuration on Red Hat-based Linux and Unix distributions:
pg_ctl -D /var/lib/pgsql/9.6/data reload
You can also reload the configuration using the pg_reload_conf
function while still being connected to PostgreSQL .The usage of the pg_reload_conf
function is mentioned as follows:
postgres=# select pg_reload_conf();
How it works...
The reload mode of the pg_ctl
command is used to send the postgres process a SIGHUP
signal, which in turn causes it to reload its configuration files such as postgresql.conf
and pg_hba.conf
. The benefit of this mode is that it allows the configuration changes to be reloaded without requiring a complete restart of the PostgreSQL server to come into effect.
In this mode, PostgreSQL will send a SIGHUP
signal to each child process, including the utility processes such as autovacuum, bgwriter, stats collector, and so on, to get the new settings from the latest configuration settings.
- Hands-On Graph Analytics with Neo4j
- 亮劍.NET:.NET深入體驗與實戰(zhàn)精要
- 協(xié)作機器人技術及應用
- 模型制作
- 電腦上網(wǎng)直通車
- 自主研拋機器人技術
- Java Web整合開發(fā)全程指南
- MATLAB/Simulink權(quán)威指南:開發(fā)環(huán)境、程序設計、系統(tǒng)仿真與案例實戰(zhàn)
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- 計算機與信息技術基礎上機指導
- HTML5 Canvas Cookbook
- 單片機C語言程序設計完全自學手冊
- 從零開始學PHP
- Visual FoxPro程序設計
- AVR單片機工程師是怎樣煉成的