PostgreSQL配置选项(修订版)
首先
以前,我写了一篇关于PostgreSQL的configure选项的文章,但由于PostgreSQL 16beta已经发布,所以我更新了它。
-
- 今回の修正点
PostgreSQL 16beta1のconfigureオプションの情報を追加
不同版本的更改内容。
PostgreSQL 16bwta1 可供选择的一种翻译:《PostgreSQL 16bwta1》
-
- -追加:-with-segsize-blocks
セグメントファイル内のブロック長(デフォルト値 8192)を指定可能
追加:–without-icu
削除:–with-icu
削除:–with-gnu-ld
PostgreSQL 15 是一种数据库管理系统。
-
- 追加:with-zstd。
TOASTやWALの圧縮オプションとしてZSTDを使う場合には、このオプションつきでconfigureを実行する。
environment variables として以下の2変数も追加
ZSTD_CFLAGS
ZSTD_LIBS
その他:with-lz4オプションはWAL圧縮オプションにも関連する。
PostgreSQL十四
with-lz4オプションの追加。TOASTの圧縮オプションとしてLZ4を使う場合には、このオプションつきでconfigureを実行する。
追加:with-lz4
追加:with-ssl
PostgreSQL 13是指第13个版本的PostgreSQL。
-
- 削除:disable-float4-byval
- 削除:disable-float8-byval
PostgreSQL 12 也就是 PostgreSQL 的第十二个版本。
— 禁用強隨機選項已被刪除。這個選項也是很短暫的吧…。
- 削除:–disable-strong-random
PostgreSQL 11的版本
添加了与JIT支持相关的with-llvm,同时删除了可作为initdb参数指定的with-wal-segsize。
-
- 追加:with-llvm
- 削除:with-wal-segsize
PostgreSQL 10是指第十个版本的PostgreSQL。
“disable-integer-datetimes” 最终被移除了!
-
- 追加:with-icu
-
- 削除:disable-integer-datetimes
- 追加:disable-strong-random
PostgreSQL 9.6版本
-
- 追加:with-bsd-auth
- 追加:with-systemd
PostgreSQL 9.5 在中国称为 PostgreSQL 9.5。
通过指定`with-krb-srvnam`参数来替代吗?(因为我从未使用过,所以不清楚)
- 削除:with-krb5
PostgreSQL 9.4 – 9.4 版 PostgreSQL
在进行构建修补程序的代码时,最好附带一个额外版本。(例如在性能验证时)
-
- 追加:with-extra-version
-
- 追加:with-uuid
- 追加:enable-tap-tests
PostgreSQL 9.2, 9.3
PostgreSQL 9.2和9.3
没有变更。
PostgreSQL 9.1:
PostgreSQL 9.1:
请注意,尽管”configure”的选项页面中没有记录,但在”contrib/sepgsql”(9.1~)的页面上,有关”with-selinux”选项的描述。
- 追加:with-selinux
PostgreSQL 9.0 – PostgreSQL 九点零
默认情况下启用线程安全指定。
-
- 追加:disable-thread-safety
- 削除:enable-thread-safety
PostgreSQL 8.4 是指的 PostgreSQL 数据库版本 8.4。
在8.4版本中,有非常多的配置选项发生了变化。没想到会有这么多变化。
-
- 追加:datarootdir
-
- 追加:docdir
-
- 削除:with-docdir
-
- 削除:with-docdir
-
- 追加:htmldir
-
- 追加:with-python
-
- 追加:with-libedit-preferred
-
- 追加:with-bonjour
-
- 追加:with-ossp-uuid
-
- 追加:disable-integer-datetimes
-
- 削除:enable-integer-datetimes
-
- 追加:disable-float4-byval
-
- 追加:disable-float8-byval
-
- 追加:with-segsize
-
- 追加:with-blocksize
-
- 追加:with-wal-segsize
-
- 追加:with-wal-blocksize
- 追加:enable-coverage
配置选项的演变
-
- 凡例
● 存在する。
- 存在しない
? たぶん存在するけど未確認
オプション名
16
15
14
13
12
11
10
9.6
9.5
9.4
9.3
9.2
9.1
9
8.4
8.3
bindir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
build
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
datadir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
datarootdir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
disable-FEATURE
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
disable-atomics
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
disable-float4-byval
●
-
-
-
●
●
●
●
●
●
●
●
●
●
●
-
disable-float8-byval
●
-
-
-
●
●
●
●
●
●
●
●
●
●
●
-
disable-integer-datetimes
●
●
●
●
●
-
-
●
●
●
●
●
●
●
●
-
disable-largefile
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
disable-option-checking
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
disable-rpath
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
disable-spinlocks
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
disable-strong-random
●
-
-
-
-
●
●
-
-
-
-
-
-
-
-
-
disable-thread-safety
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
-
docdir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
dvidir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
enable-FEATURE
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
enable-cassert
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
enable-coverage
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
enable-debug
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
enable-depend
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
enable-dtrace
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
enable-integer-datetimes
●
-
-
-
-
-
-
-
-
-
-
-
-
-
-
●
enable-nls
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
enable-profiling
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
enable-tap-tests
●
●
●
●
●
●
●
●
●
●
-
-
-
-
-
-
enable-thread-safety
●
-
-
-
-
-
-
-
-
-
-
-
-
-
●
●
exec-prefix
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
host
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
htmldir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
includedir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
infodir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
libdir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
libexecdir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
localedir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
localstatedir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
mandir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
oldincludedir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
pdfdir
●
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
prefix
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
psdir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
sbindir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
sharedstatedir
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
sysconfdir
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-with-CC
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
with-PACKAGE
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
with-blocksize
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
with-bonjour
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
with-bsd-auth
●
●
●
●
●
●
●
●
-
-
-
-
-
-
-
-
with-docdir
●
-
-
-
-
-
-
-
-
-
-
-
-
-
-
●
with-extra-version
●
●
●
●
●
●
●
●
●
●
-
-
-
-
-
-
with-gnu-ld
-
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
with-gssapi
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-icu
-
●
●
●
●
●
●
-
-
-
-
-
-
-
-
-
with-includes
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-krb-srvname
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-krb5
●
-
-
-
-
-
-
-
-
●
●
●
●
●
●
●
with-ldap
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-libedit-preferred
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
with-libraries
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-libs
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
with-libxml
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-libxslt
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-llvm
●
●
●
●
●
●
-
-
-
-
-
-
-
-
-
-
with-lz4
●
●
●
-
-
-
-
-
-
-
-
-
-
-
-
-
with-openssl
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-ossp-uuid
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
with-pam
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-perl
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-pgport
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-python
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
with-segsize
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
with-segsize-blocks
●
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
with-selinux
●
●
●
●
●
●
●
●
●
●
●
●
●
-
-
-
with-ssl
●
●
●
-
-
-
-
-
-
-
-
-
-
-
-
-
with-system-tzdata
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-systemd
●
●
●
●
●
●
●
●
-
-
-
-
-
-
-
-
with-tcl
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-tclconfig
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
with-template
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
with-uuid
●
●
●
●
●
●
●
●
●
●
-
-
-
-
-
-
with-wal-blocksize
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
-
with-wal-segsize
-
-
-
-
-
-
●
●
●
●
●
●
●
●
●
-
with-zstd
●
●
-
-
-
-
-
-
-
-
-
-
-
-
-
-
without-PACKAGE
●
●
●
●
●
?
?
?
?
?
?
?
?
?
?
?
without-docdir
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
●
without-icu
●
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
without-readline
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
without-zlib
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●