linkend="runtime-config-query-constants"
endterm="runtime-config-query-constants-title">, running
ANALYZE more frequently, and increasing the
disk cache (that is, the portion of the kernel's disk cache
that will be used for
PostgreSQL
data files). This is measured in disk pages, which are
- normally 8192 bytes each.
+ normally 8192 bytes each. The default is 1000.
Sets the query planner's estimate of the cost of a
nonsequentially fetched disk page. This is measured as a
multiple of the cost of a sequential page fetch. A higher
- value makes it more likely a sequential scan will be used,
- a lower value makes it more likely an index scan will be used.
+ value makes it more likely a sequential scan will be used, a
+ lower value makes it more likely an index scan will be
+ used. The default is four.
Sets the query planner's estimate of the cost of processing
each tuple during a query. This is measured as a fraction of
- the cost of a sequential page fetch.
+ the cost of a sequential page fetch. The default is 0.01.
Sets the query planner's estimate of the cost of processing
each index tuple during an index scan. This is measured as a
- fraction of the cost of a sequential page fetch.
+ fraction of the cost of a sequential page fetch. The default
+ is 0.001.
Sets the planner's estimate of the cost of processing each
operator in a WHERE> clause. This is measured as a fraction of
- the cost of a sequential page fetch.
+ the cost of a sequential page fetch. The default is 0.0025.
had a column-specific target set via ALTER TABLE SET
STATISTICS>. Larger values increase the time needed to do
ANALYZE>, but may improve the quality of the planner's
- estimates. The default value is 10.
+ estimates. The default is 10.
Controls the amount of detail written in the server log for each
- message that is logged. Valid values are terse>,
- default>, and verbose>, each adding more
+ message that is logged. Valid values are TERSE>,
+ DEFAULT>, and VERBOSE>, each adding more
fields to displayed messages.
debug_pretty_print (boolean)
- These options enable various debugging output to be sent to the
- client or server log. For each executed query, they print the resulting
- parse tree, the query rewriter output, or the execution plan.
- indents these displays to
- produce a more readable but much longer output format.
- or
- must be DEBUG1 or lower to send output to the client
- or server logs.
+ These options enable various debugging output to be sent to
+ the client or server log. For each executed query, they print
+ the resulting parse tree, the query rewriter output, or the
+ execution plan. debug_pretty_print indents
+ these displays to produce a more readable but much longer
+ output format. client_min_messages or
+ log_min_messages must be
+ DEBUG1 or lower to send output to the
+ client or server logs. These options are off by default.
Causes the duration of every completed statement to be logged.
To use this option, enable log_statement> and
log_pid> so you can link the statement to the
- duration using the process ID.
+ duration using the process ID. The default is off.
Only superusers can turn off this option if it is enabled by
the administrator.
log_statement (boolean)
- Causes each SQL statement to be logged.
+ Causes each SQL statement to be logged. The default is off.
Only superusers can turn off this option if it is enabled by
the administrator.
For each query, write performance statistics of the respective
module to the server log. This is a crude profiling
- instrument.
- Only superusers can turn off this option if it is enabled by
- the administrator.
+ instrument. All of these options are disabled by default.
+ Only superusers can turn off any of these options if they have
+ been enabled by the administrator.
Aborts any statement that takes over the specified number of
- milliseconds. A value of zero turns off the timer.
+ milliseconds. A value of zero turns off the timer, which is
+ the default value.
explain_pretty_print (boolean)
- Determines whether EXPLAIN VERBOSE> uses the indented
- or non-indented format for displaying detailed query-tree dumps.
+ Determines whether EXPLAIN VERBOSE> uses the
+ indented or non-indented format for displaying detailed
+ query-tree dumps. The default is on.
Sets the maximum expression nesting depth of the parser. The
- default value is high enough for any normal query, but you can
- raise it if needed. (But if you raise it too high, you run
- the risk of server crashes due to stack overflow.)
+ default value of 10000 is high enough for any normal query,
+ but you can raise it if needed. (But if you raise it too high,
+ you run the risk of server crashes due to stack overflow.)
The shared lock table is sized on the assumption that at most
- max_locks_per_transaction> *
+ max_locks_per_transactionvarname> *
max_connections distinct objects will need to
be locked at any one time. The default, 64, has historically
proven sufficient, but you might need to raise this value if you
The regular expression flavor> can be set to
advanced>, extended>, or basic>.
- The usual default is advanced>. The extended>
+ The default is advanced>. The extended>
setting may be useful for exact backwards compatibility with
pre-7.4 releases of
PostgreSQL>.
Developer Options
- The following options are intended for work on the PostgreSQL source,
- and in some cases to assist with recovery of
- severely damaged databases. There should be no reason to use them in
- a production database setup. As such, they have been excluded from the
- sample postgresql.conf> file.
- Note that many of these options require special
- source compilation flags to work at all.
+ The following options are intended for work on the
+
PostgreSQL source, and in some cases
+ to assist with recovery of severely damaged databases. There
+ should be no reason to use them in a production database setup.
+ As such, they have been excluded from the sample
+ postgresql.conf> file. Note that many of these
+ options require special source compilation flags to work at all.
Generates a great amount of debugging output for the
LISTEN and NOTIFY
- commands.
- <option>CLIENT_MIN_MESSAGES or
- must be DEBUG1 or lower to send this output to the
+ commands. client_min_messages or
+ <varname>log_min_messages must be
+ DEBUG1 or lower to send this output to the
client or server log, respectively.