時間:2024-02-07 12:09作者:下載吧人氣:19
大家好!我是只談技術不剪發(fā)的 Tony 老師。今天我們來聊聊 PostgreSQL 的性能優(yōu)化;數據庫優(yōu)化是一個系統(tǒng)的工程,本文只專注于服務器的參數配置優(yōu)化。
默認安裝時,PostgreSQL 的配置參數通常都偏小,不太適合作為生產服務器使用。所以,安裝 PostgreSQL 數據庫之后首先需要執(zhí)行的操作就是對服務器的配置參數進行調整。
我們使用 PostgreSQL 12,服務器的配置參數有 300 多個,運行時的參數值可以使用 SHOW 命令查看:
show server_version;
server_version|
————–|
12.3 |
show all;
name |setting |description |
———————————–|—————————————–|———————————————————————————————————-|
allow_system_table_mods |off |Allows modifications of the structure of system tables. |
application_name |DBeaver 7.0.5 – SQLEditor <Script-13.sql>|Sets the application name to be reported in statistics and logs. |
archive_cleanup_command | |Sets the shell command that will be executed at every restart point. |
…
網友評論