|
1 | | -# |
| 1 | +# ----------------------------- |
2 | 2 | # PostgreSQL configuration file |
3 | 3 | # ----------------------------- |
4 | 4 | # |
|
21 | 21 | # "pg_ctl reload". |
22 | 22 |
|
23 | 23 |
|
24 | | -#======================================================================== |
25 | | - |
26 | | - |
27 | | -# |
28 | | -#Connection Parameters |
29 | | -# |
30 | | - |
| 24 | +#--------------------------------------------------------------------------- |
31 | 25 | # CONNECTIONS AND AUTHENTICATION |
32 | | -# ---------------------------------- |
33 | | -# Connection Settings |
| 26 | +#--------------------------------------------------------------------------- |
| 27 | + |
| 28 | +# - Connection Settings - |
34 | 29 |
|
35 | 30 | #tcpip_socket = false |
36 | 31 | #max_connections = 32 |
|
44 | 39 | #unix_socket_permissions = 0777# octal |
45 | 40 | #virtual_host = '' |
46 | 41 |
|
47 | | -# Security & Authentication |
| 42 | +#-Security & Authentication - |
48 | 43 |
|
49 | 44 | #authentication_timeout = 60# 1-600, in seconds |
50 | 45 | #ssl = false |
|
53 | 48 | #db_user_namespace = false |
54 | 49 |
|
55 | 50 |
|
| 51 | +#--------------------------------------------------------------------------- |
56 | 52 | # RESOURCE USAGE (except WAL) |
57 | | -# --------------------------------- |
58 | | -# Memory |
| 53 | +#--------------------------------------------------------------------------- |
| 54 | + |
| 55 | +# - Memory - |
59 | 56 |
|
60 | 57 | #shared_buffers = 64# min 16, at least max_connections*2, 8KB each |
61 | 58 | #sort_mem = 1024# min 64, size in KB |
62 | 59 | #vacuum_mem = 8192# min 1024, size in KB |
63 | 60 |
|
64 | | -# Free Space Map |
| 61 | +#-Free Space Map - |
65 | 62 |
|
66 | 63 | #max_fsm_pages = 20000# min max_fsm_relations*16, 6 bytes each |
67 | 64 | #max_fsm_relations = 1000# min 100, ~50 bytes each |
68 | 65 |
|
69 | | -# Kernel Resource Usage |
| 66 | +#-Kernel Resource Usage - |
70 | 67 |
|
71 | 68 | #max_files_per_process = 1000# min 25 |
72 | 69 | #preload_libraries = '' |
73 | 70 |
|
74 | 71 |
|
| 72 | +#--------------------------------------------------------------------------- |
75 | 73 | # WRITE AHEAD LOG |
76 | | -# --------------------------------- |
77 | | -# Settings |
| 74 | +#--------------------------------------------------------------------------- |
| 75 | + |
| 76 | +# - Settings - |
78 | 77 |
|
79 | 78 | #fsync = true# turns forced synchronization on or off |
80 | 79 | #wal_sync_method = fsync# the default varies across platforms: |
81 | 80 | # fsync, fdatasync, open_sync, or open_datasync |
82 | 81 | #wal_buffers = 8# min 4, 8KB each |
83 | 82 |
|
84 | | -# Checkpoints |
| 83 | +#-Checkpoints - |
85 | 84 |
|
86 | 85 | #checkpoint_segments = 3# in logfile segments, min 1, 16MB each |
87 | 86 | #checkpoint_timeout = 300# range 30-3600, in seconds |
|
90 | 89 | #commit_siblings = 5# range 1-1000 |
91 | 90 |
|
92 | 91 |
|
| 92 | +#--------------------------------------------------------------------------- |
93 | 93 | # QUERY TUNING |
94 | | -# -------------------------------- |
95 | | -# Planner Method Enabling |
| 94 | +#--------------------------------------------------------------------------- |
| 95 | + |
| 96 | +# - Planner Method Enabling - |
96 | 97 |
|
97 | 98 | #enable_hashagg = true |
98 | 99 | #enable_hashjoin = true |
|
103 | 104 | #enable_sort = true |
104 | 105 | #enable_tidscan = true |
105 | 106 |
|
106 | | -# Planner Cost Constants |
| 107 | +#-Planner Cost Constants - |
107 | 108 |
|
108 | 109 | #effective_cache_size = 1000# typically 8KB each |
109 | 110 | #random_page_cost = 4# units are one sequential page fetch cost |
110 | 111 | #cpu_tuple_cost = 0.01# (same) |
111 | 112 | #cpu_index_tuple_cost = 0.001# (same) |
112 | 113 | #cpu_operator_cost = 0.0025# (same) |
113 | 114 |
|
114 | | -# Genetic Query Optimizer |
| 115 | +#-Genetic Query Optimizer - |
115 | 116 |
|
116 | 117 | #geqo = true |
117 | 118 | #geqo_threshold = 11 |
|
122 | 123 | #geqo_random_seed = -1# -1 = use variable seed |
123 | 124 | #geqo_selection_bias = 2.0# range 1.5-2.0 |
124 | 125 |
|
125 | | -# Other Planner Options |
| 126 | +#-Other Planner Options - |
126 | 127 |
|
127 | 128 | #default_statistics_target = 10# range 1-1000 |
128 | 129 | #from_collapse_limit = 8 |
129 | 130 | #join_collapse_limit = 8# 1 disables collapsing of explicit JOINs |
130 | 131 |
|
131 | 132 |
|
| 133 | +#--------------------------------------------------------------------------- |
132 | 134 | # ERROR REPORTING AND LOGGING |
133 | | -# ------------------------------------ |
134 | | -# Syslog |
| 135 | +#--------------------------------------------------------------------------- |
| 136 | + |
| 137 | +# - Syslog - |
135 | 138 |
|
136 | 139 | #syslog = 0# range 0-2 |
137 | 140 | #syslog_facility = 'LOCAL0' |
138 | 141 | #syslog_ident = 'postgres' |
139 | 142 |
|
140 | | -# When to Log |
| 143 | +#-When to Log - |
141 | 144 |
|
142 | 145 | #client_min_messages = notice# Values, in order of decreasing detail: |
143 | 146 | # debug5, debug4, debug3, debug2, debug1, |
|
160 | 163 |
|
161 | 164 | #silent_mode = false # DO NOT USE without Syslog! |
162 | 165 |
|
163 | | -# What to Log |
| 166 | +#-What to Log - |
164 | 167 |
|
165 | 168 | #debug_print_parse = false |
166 | 169 | #debug_print_rewritten = false |
|
174 | 177 | #log_hostname = false |
175 | 178 | #log_source_port = false |
176 | 179 |
|
| 180 | + |
| 181 | +#--------------------------------------------------------------------------- |
177 | 182 | # RUNTIME STATISTICS |
178 | | -# ------------------------------------- |
179 | | -# Statistics Monitoring |
| 183 | +#--------------------------------------------------------------------------- |
| 184 | + |
| 185 | +# - Statistics Monitoring - |
180 | 186 |
|
181 | 187 | #log_parser_stats = false |
182 | 188 | #log_planner_stats = false |
183 | 189 | #log_executor_stats = false |
184 | 190 | #log_statement_stats = false |
185 | 191 |
|
186 | | -# Query/Index Statistics Collector |
| 192 | +#-Query/Index Statistics Collector - |
187 | 193 |
|
188 | 194 | #stats_start_collector = true |
189 | 195 | #stats_command_string = false |
|
192 | 198 | #stats_reset_on_server_start = true |
193 | 199 |
|
194 | 200 |
|
| 201 | +#--------------------------------------------------------------------------- |
195 | 202 | # CLIENT CONNECTION DEFAULTS |
196 | | -# ------------------------------------- |
197 | | -# Statement Behavior |
| 203 | +#--------------------------------------------------------------------------- |
| 204 | + |
| 205 | +# - Statement Behavior - |
198 | 206 |
|
199 | 207 | #search_path = '$user,public'# schema names |
200 | 208 | #default_transaction_isolation = 'read committed' |
201 | 209 | #default_transaction_read_only = false |
202 | 210 | #statement_timeout = 0# 0 is disabled, in milliseconds |
203 | 211 |
|
204 | | -# Locale and Formatting |
| 212 | +#-Locale and Formatting - |
205 | 213 |
|
206 | 214 | #datestyle = 'iso, us' |
207 | 215 | #timezone = unknown# actually, defaults to TZ environment setting |
|
215 | 223 | #lc_numeric = 'C'# locale for number formatting |
216 | 224 | #lc_time = 'C'# locale for time formatting |
217 | 225 |
|
218 | | -# Other Defaults |
| 226 | +#-Other Defaults - |
219 | 227 |
|
220 | 228 | #explain_pretty_print = true |
221 | 229 | #dynamic_library_path = '$libdir' |
222 | 230 | #max_expr_depth = 10000# min 10 |
223 | 231 |
|
| 232 | + |
| 233 | +#--------------------------------------------------------------------------- |
224 | 234 | # LOCK MANAGEMENT |
225 | | -#----------------------------------------- |
| 235 | +#--------------------------------------------------------------------------- |
226 | 236 |
|
227 | 237 | #deadlock_timeout = 1000# in milliseconds |
228 | 238 | #max_locks_per_transaction = 64# min 10, ~260*max_connections bytes each |
229 | 239 |
|
230 | 240 |
|
| 241 | +#--------------------------------------------------------------------------- |
231 | 242 | # VERSION/PLATFORM COMPATIBILITY |
232 | | -# ----------------------------------------- |
233 | | -# Previous Postgres Versions |
| 243 | +#--------------------------------------------------------------------------- |
| 244 | + |
| 245 | +# - Previous Postgres Versions - |
234 | 246 |
|
235 | 247 | #add_missing_from = true |
236 | 248 | #regex_flavor = advanced# advanced, extended, or basic |
237 | 249 | #sql_inheritance = true |
238 | 250 |
|
239 | | -# Other Platforms & Clients |
| 251 | +#-Other Platforms & Clients - |
240 | 252 |
|
241 | 253 | #transform_null_equals = false |