跳转到主要内容

PostgreSQL 9.3 → 9.4 GUC 差异

PG9.3 与 PG9.4 之间新增、boot 默认值变化和移除的核心配置参数。
说明

Fact。 实测在档数从 231 变为 240;新增 10、boot 默认值变化 6、移除 1。

新增参数

参数 类型 Context Boot 默认值 分类
autovacuum_work_mem integer sighup -1 kB Resource Usage / Memory
data_sync_retry bool postmaster off Error Handling
dynamic_shared_memory_type enum postmaster posix Resource Usage / Memory
huge_pages enum postmaster try Resource Usage / Memory
max_replication_slots integer postmaster 0 Replication / Sending Servers
max_worker_processes integer postmaster 8 Resource Usage / Asynchronous Behavior
session_preload_libraries string superuser "" (empty string) Client Connection Defaults / Shared Library Preloading
ssl_ecdh_curve string postmaster prime256v1 Connections and Authentication / Security and Authentication
ssl_prefer_server_ciphers bool postmaster on Connections and Authentication / Security and Authentication
wal_log_hints bool postmaster off Write-Ahead Log / Settings

Boot 默认值变化

参数 PG9.3 PG9.4 分类
effective_cache_size 16384 8kB (128 MiB (16384 × 8kB)) 524288 8kB (4 GiB (524288 × 8kB)) Query Tuning / Planner Cost Constants
maintenance_work_mem 16384 kB (16 MiB) 65536 kB (64 MiB) Resource Usage / Memory
server_version 9.3.25 9.4.26 Preset Options
server_version_num 90325 90426 Preset Options
ssl_ciphers DEFAULT:!LOW:!EXP:!MD5:@STRENGTH HIGH:MEDIUM:+3DES:!aNULL Connections and Authentication / Security and Authentication
work_mem 1024 kB (1 MiB) 4096 kB (4 MiB) Resource Usage / Memory

移除参数

参数 最后类型 Context 最后 Boot 默认值 分类
krb_srvname string sighup postgres Connections and Authentication / Security and Authentication

计算方法

三张清单直接比较固定环境中的 PG9.3 与 PG9.4 pg_settings 快照。默认值变化使用 boot_valunit 的组合;setting 不参与判定,以免把 initdb 生成值误当作编译时默认值。