为了方便起见,这里还为一些参数提供了好多单字母命令行选项开关。 它们在下面的 Table 17-1 里描述。
Table 17-1. 短选项键字
短选项 | 等效 |
---|---|
-B x | shared_buffers = x |
-d x | server_min_messages = DEBUGx |
-F | fsync = off |
-h x | listen_addresses = x |
-i | listen_addresses = '*' |
-k x | unix_socket_directory = x |
-l | ssl = on |
-N x | max_connections = x |
-p x | port = x |
-fb, -fh, -fi, -fm, -fn, -fs, -ft[a] | enable_bitmapscan = off, enable_hashjoin = off, enable_indexscan = off, enable_mergejoin = off, enable_nestloop = off, enable_seqscan = off, enable_tidscan = off |
-s[a] | log_statement_stats = on |
-S x[a] | work_mem = x |
-tpa,-tpl,-te[a] | log_parser_stats = on, log_planner_stats = on, log_executor_stats = on |
Notes: a. 因为历史原因,这些选项通过-o postmaster选项传递给独立得服务器进程,比如, $ postmaster -o '-S 1024 -s'
或者是通过客户端的 PGOPTIONS,
像上面解释地那样。
|