Commit 80ec2283 authored by Neil Conway's avatar Neil Conway

Refer to GUC variables using <xref> tags rather than <varname> tags,

where appropriate. Add "id" and "xreflabel" tags to the descriptions
of the GUC variables to facilitate this. Also make a few minor docs
cleanups.
parent 8567bb2d
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.37 2004/02/17 23:56:07 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.38 2004/03/09 16:57:46 neilc Exp $
--> -->
<chapter id="backup"> <chapter id="backup">
<title>Backup and Restore</title> <title>Backup and Restore</title>
...@@ -156,8 +156,8 @@ pg_dump -h <replaceable>host1</> <replaceable>dbname</> | psql -h <replaceable>h ...@@ -156,8 +156,8 @@ pg_dump -h <replaceable>host1</> <replaceable>dbname</> | psql -h <replaceable>h
<tip> <tip>
<para> <para>
Restore performance can be improved by increasing the Restore performance can be improved by increasing the
configuration parameter <varname>maintenance_work_mem</varname> configuration parameter <xref
(see <xref linkend="runtime-config-resource-memory">). linkend="guc-maintenance-work-mem">.
</para> </para>
</tip> </tip>
</sect2> </sect2>
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.42 2003/12/30 23:36:19 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.43 2004/03/09 16:57:46 neilc Exp $ -->
<chapter id="charset"> <chapter id="charset">
<title>Localization</> <title>Localization</>
...@@ -795,23 +795,23 @@ RESET client_encoding; ...@@ -795,23 +795,23 @@ RESET client_encoding;
<listitem> <listitem>
<para> <para>
Using <envar>PGCLIENTENCODING</envar>. Using <envar>PGCLIENTENCODING</envar>. If environment variable
<envar>PGCLIENTENCODING</envar> is defined in the client's
If environment variable <envar>PGCLIENTENCODING</envar> is defined environment, that client encoding is automatically selected
in the client's environment, that client encoding is automatically when a connection to the server is made. (This can
selected when a connection to the server is made. (This can subsequently subsequently be overridden using any of the other methods
be overridden using any of the other methods mentioned above.) mentioned above.)
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
Using the configuration variable <varname>client_encoding</varname>. Using the configuration variable <xref
linkend="guc-client-encoding">. If the
If the <varname>client_encoding</> variable in <filename>postgresql.conf</> is set, that <varname>client_encoding</> variable is set, that client
client encoding is automatically selected when a connection to the encoding is automatically selected when a connection to the
server is made. (This can subsequently be overridden using any of the server is made. (This can subsequently be overridden using any
other methods mentioned above.) of the other methods mentioned above.)
</para> </para>
</listitem> </listitem>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.63 2004/01/26 05:35:15 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.64 2004/03/09 16:57:46 neilc Exp $
--> -->
<chapter id="client-authentication"> <chapter id="client-authentication">
...@@ -113,8 +113,8 @@ hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> ...@@ -113,8 +113,8 @@ hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable>
<para> <para>
This record matches connection attempts made using TCP/IP. This record matches connection attempts made using TCP/IP.
Note that TCP/IP connections are disabled unless the server is Note that TCP/IP connections are disabled unless the server is
started with the <option>-i</option> option or the started with the <option>-i</option> option or the <xref
<varname>tcpip_socket</> configuration parameter is linkend="guc-tcpip-socket"> configuration parameter is
enabled. <literal>host</literal> records match either enabled. <literal>host</literal> records match either
<acronym>SSL</acronym> or non-<acronym>SSL</acronym> connection <acronym>SSL</acronym> or non-<acronym>SSL</acronym> connection
attempts. attempts.
...@@ -134,8 +134,8 @@ hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable> ...@@ -134,8 +134,8 @@ hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable>
<para> <para>
To make use of this option the server must be built with To make use of this option the server must be built with
<acronym>SSL</acronym> support enabled. Furthermore, <acronym>SSL</acronym> support enabled. Furthermore,
<acronym>SSL</acronym> must be enabled by setting the <acronym>SSL</acronym> must be enabled by setting the <xref
<varname>ssl</varname> configuration parameter (see <xref linkend="guc-ssl"> configuration parameter (see <xref
linkend="ssl-tcp"> for more information). linkend="ssl-tcp"> for more information).
</para> </para>
</listitem> </listitem>
...@@ -677,14 +677,14 @@ local db1,db2,@demodbs all md5 ...@@ -677,14 +677,14 @@ local db1,db2,@demodbs all md5
</para> </para>
<para> <para>
Make sure that your server key file is readable (and preferably only Make sure that your server key file is readable (and preferably
readable) by the <productname>PostgreSQL</productname> server only readable) by the <productname>PostgreSQL</productname> server
account. (See also <xref linkend="postgres-user">). The location of the account. (See also <xref linkend="postgres-user">). The location
key file is specified with the <varname>krb_server_keyfile</> run-time of the key file is specified by the <xref
configuration parameter. (See also <xref linkend="guc-krb-server-keyfile"> run-time configuration
linkend="runtime-config">.) The default is <filename>/etc/srvtab</> parameter. (See also <xref linkend="runtime-config">.) The default
if you are using Kerberos 4 and is <filename>/etc/srvtab</> if you are using Kerberos 4 and
<filename>FILE:/usr/local/pgsql/etc/krb5.keytab</> (or whichever <filename>/usr/local/pgsql/etc/krb5.keytab</> (or whichever
directory was specified as <varname>sysconfdir</> at build time) directory was specified as <varname>sysconfdir</> at build time)
with Kerberos 5. with Kerberos 5.
</para> </para>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.142 2004/02/01 06:55:07 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.143 2004/03/09 16:57:46 neilc Exp $
--> -->
<chapter id="datatype"> <chapter id="datatype">
...@@ -1409,7 +1409,7 @@ SELECT b, char_length(b) FROM test2; ...@@ -1409,7 +1409,7 @@ SELECT b, char_length(b) FROM test2;
traditional <productname>POSTGRES</productname>, and others. traditional <productname>POSTGRES</productname>, and others.
For some formats, ordering of month, day, and year in date input is For some formats, ordering of month, day, and year in date input is
ambiguous and there is support for specifying the expected ambiguous and there is support for specifying the expected
ordering of these fields. Set the <varname>datestyle</> parameter ordering of these fields. Set the <xref linkend="guc-datestyle"> parameter
to <literal>MDY</> to select month-day-year interpretation, to <literal>MDY</> to select month-day-year interpretation,
<literal>DMY</> to select day-month-year interpretation, or <literal>DMY</> to select day-month-year interpretation, or
<literal>YMD</> to select year-month-day interpretation. <literal>YMD</> to select year-month-day interpretation.
...@@ -1720,7 +1720,7 @@ January 8 04:05:06 1999 PST ...@@ -1720,7 +1720,7 @@ January 8 04:05:06 1999 PST
time zone specified is converted to UTC using the appropriate offset time zone specified is converted to UTC using the appropriate offset
for that time zone. If no time zone is stated in the input string, for that time zone. If no time zone is stated in the input string,
then it is assumed to be in the time zone indicated by the system's then it is assumed to be in the time zone indicated by the system's
<varname>timezone</> parameter, and is converted to UTC using the <xref linkend="guc-timezone"> parameter, and is converted to UTC using the
offset for the <varname>timezone</> zone. offset for the <varname>timezone</> zone.
</para> </para>
...@@ -1993,8 +1993,8 @@ January 8 04:05:06 1999 PST ...@@ -1993,8 +1993,8 @@ January 8 04:05:06 1999 PST
<para> <para>
The date/time styles can be selected by the user using the The date/time styles can be selected by the user using the
<command>SET datestyle</command> command, the <command>SET datestyle</command> command, the <xref
<varname>datestyle</varname> parameter in the linkend="guc-datestyle"> parameter in the
<filename>postgresql.conf</filename> configuration file, or the <filename>postgresql.conf</filename> configuration file, or the
<envar>PGDATESTYLE</envar> environment variable on the server or <envar>PGDATESTYLE</envar> environment variable on the server or
client. The formatting function <function>to_char</function> client. The formatting function <function>to_char</function>
...@@ -2092,8 +2092,8 @@ January 8 04:05:06 1999 PST ...@@ -2092,8 +2092,8 @@ January 8 04:05:06 1999 PST
<listitem> <listitem>
<para> <para>
The <varname>timezone</varname> configuration parameter can be The <xref linkend="guc-timezone"> configuration parameter can
set in the file <filename>postgresql.conf</>. be set in the file <filename>postgresql.conf</>.
</para> </para>
</listitem> </listitem>
...@@ -2929,7 +2929,7 @@ SELECT * FROM test; ...@@ -2929,7 +2929,7 @@ SELECT * FROM test;
<productname>PostgreSQL</productname> as primary keys for various <productname>PostgreSQL</productname> as primary keys for various
system tables. An OID system column is also added to user-created system tables. An OID system column is also added to user-created
tables, unless <literal>WITHOUT OIDS</literal> is specified when tables, unless <literal>WITHOUT OIDS</literal> is specified when
the table is created, or the <varname>default_with_oids</varname> the table is created, or the <xref linkend="guc-default-with-oids">
configuration variable is set to false. Type <type>oid</> configuration variable is set to false. Type <type>oid</>
represents an object identifier. There are also several alias represents an object identifier. There are also several alias
types for <type>oid</>: <type>regproc</>, <type>regprocedure</>, types for <type>oid</>: <type>regproc</>, <type>regprocedure</>,
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.192 2004/03/07 01:01:44 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.193 2004/03/09 16:57:46 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -311,7 +311,7 @@ PostgreSQL documentation ...@@ -311,7 +311,7 @@ PostgreSQL documentation
returns true if <replaceable>expression</replaceable> evaluates to returns true if <replaceable>expression</replaceable> evaluates to
the null value. It is highly recommended that these applications the null value. It is highly recommended that these applications
be modified to comply with the SQL standard. However, if that be modified to comply with the SQL standard. However, if that
cannot be done the <varname>transform_null_equals</varname> cannot be done the <xref linkend="guc-transform-null-equals">
configuration variable is available. If it is enabled, configuration variable is available. If it is enabled,
<productname>PostgreSQL</productname> will convert <literal>x = <productname>PostgreSQL</productname> will convert <literal>x =
NULL</literal> clauses to <literal>x IS NULL</literal>. This was NULL</literal> clauses to <literal>x IS NULL</literal>. This was
...@@ -2715,12 +2715,12 @@ substring('foobar' from 'o(.)b') <lineannotation>o</lineannotation> ...@@ -2715,12 +2715,12 @@ substring('foobar' from 'o(.)b') <lineannotation>o</lineannotation>
<note> <note>
<para> <para>
The form of regular expressions accepted by <productname>PostgreSQL</> The form of regular expressions accepted by
can be chosen by setting the <varname>regex_flavor</> run-time parameter <productname>PostgreSQL</> can be chosen by setting the <xref
(described in <xref linkend="runtime-config">). The usual setting is linkend="guc-regex-flavor"> run-time parameter. The usual
<literal>advanced</>, but one might choose <literal>extended</> for setting is <literal>advanced</>, but one might choose
maximum backwards compatibility with pre-7.4 releases of <literal>extended</> for maximum backwards compatibility with
<productname>PostgreSQL</>. pre-7.4 releases of <productname>PostgreSQL</>.
</para> </para>
</note> </note>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.41 2004/02/03 17:34:02 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.42 2004/03/09 16:57:46 neilc Exp $
--> -->
<chapter id="performance-tips"> <chapter id="performance-tips">
...@@ -508,7 +508,7 @@ SELECT * FROM a, b, c WHERE a.id = b.id AND b.ref = c.id; ...@@ -508,7 +508,7 @@ SELECT * FROM a, b, c WHERE a.id = b.id AND b.ref = c.id;
<productname>PostgreSQL</productname> planner will switch from exhaustive <productname>PostgreSQL</productname> planner will switch from exhaustive
search to a <firstterm>genetic</firstterm> probabilistic search search to a <firstterm>genetic</firstterm> probabilistic search
through a limited number of possibilities. (The switch-over threshold is through a limited number of possibilities. (The switch-over threshold is
set by the <varname>geqo_threshold</varname> run-time set by the <xref linkend="guc-geqo-threshold"> run-time
parameter.) parameter.)
The genetic search takes less time, but it won't The genetic search takes less time, but it won't
necessarily find the best possible plan. necessarily find the best possible plan.
...@@ -549,7 +549,7 @@ SELECT * FROM a JOIN (b JOIN c ON (b.ref = c.id)) ON (a.id = b.id); ...@@ -549,7 +549,7 @@ SELECT * FROM a JOIN (b JOIN c ON (b.ref = c.id)) ON (a.id = b.id);
<para> <para>
To force the planner to follow the <literal>JOIN</> order for inner joins, To force the planner to follow the <literal>JOIN</> order for inner joins,
set the <varname>join_collapse_limit</> run-time parameter to 1. set the <xref linkend="guc-join-collapse-limit"> run-time parameter to 1.
(Other possible values are discussed below.) (Other possible values are discussed below.)
</para> </para>
...@@ -599,8 +599,8 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse; ...@@ -599,8 +599,8 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
problem replacing two separate three-way join problems. Because of the problem replacing two separate three-way join problems. Because of the
exponential growth of the number of possibilities, this makes a big exponential growth of the number of possibilities, this makes a big
difference. The planner tries to avoid getting stuck in huge join search difference. The planner tries to avoid getting stuck in huge join search
problems by not collapsing a subquery if more than problems by not collapsing a subquery if more than <xref linkend="guc-from-collapse-limit">
<varname>from_collapse_limit</> <literal>FROM</> items would result in the parent <literal>FROM</> items would result in the parent
query. You can trade off planning time against quality of plan by query. You can trade off planning time against quality of plan by
adjusting this run-time parameter up or down. adjusting this run-time parameter up or down.
</para> </para>
...@@ -688,11 +688,11 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse; ...@@ -688,11 +688,11 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
<title>Increase <varname>maintenance_work_mem</varname></title> <title>Increase <varname>maintenance_work_mem</varname></title>
<para> <para>
Temporarily increasing the <varname>maintenance_work_mem</varname> Temporarily increasing the <xref linkend="guc-maintenance-work-mem">
configuration variable when restoring large amounts of data can configuration variable when restoring large amounts of data can
lead to improved performance. This is because when a B-tree index lead to improved performance. This is because when a B-tree index
is created from scratch, the existing content of the table needs is created from scratch, the existing content of the table needs
to be sorted. Allowing the merge sort to use more memory to be sorted. Allowing the external merge sort to use more memory
means that fewer merge passes will be required. A larger setting for means that fewer merge passes will be required. A larger setting for
<varname>maintenance_work_mem</varname> may also speed up validation <varname>maintenance_work_mem</varname> may also speed up validation
of foreign-key constraints. of foreign-key constraints.
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/problems.sgml,v 2.17 2003/12/14 00:05:29 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/problems.sgml,v 2.18 2004/03/09 16:57:46 neilc Exp $
--> -->
<sect1 id="bug-reporting"> <sect1 id="bug-reporting">
...@@ -173,7 +173,7 @@ $PostgreSQL: pgsql/doc/src/sgml/problems.sgml,v 2.17 2003/12/14 00:05:29 neilc E ...@@ -173,7 +173,7 @@ $PostgreSQL: pgsql/doc/src/sgml/problems.sgml,v 2.17 2003/12/14 00:05:29 neilc E
form of the message. In <application>psql</>, say <literal>\set form of the message. In <application>psql</>, say <literal>\set
VERBOSITY verbose</> beforehand. If you are extracting the message VERBOSITY verbose</> beforehand. If you are extracting the message
from the server log, set the run-time parameter from the server log, set the run-time parameter
<varname>log_error_verbosity</> to <literal>verbose</> so that all <xref linkend="guc-log-error-verbosity"> to <literal>verbose</> so that all
details are logged. details are logged.
</para> </para>
</note> </note>
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.49 2003/12/14 00:10:32 neilc Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.50 2004/03/09 16:57:46 neilc Exp $ -->
<chapter id="protocol"> <chapter id="protocol">
<title>Frontend/Backend Protocol</title> <title>Frontend/Backend Protocol</title>
...@@ -390,12 +390,13 @@ ...@@ -390,12 +390,13 @@
<ListItem> <ListItem>
<Para> <Para>
This message informs the frontend about the current (initial) This message informs the frontend about the current (initial)
setting of backend parameters, such as <varname>client_encoding</> setting of backend parameters, such as <xref
or <varname>DateStyle</>. The frontend may ignore this message, linkend="guc-client-encoding"> or <xref linkend="guc-datestyle">.
or record the settings for its future use; see The frontend may ignore this message, or record the settings
<xref linkend="protocol-async"> for more detail. for its future use; see <xref linkend="protocol-async"> for
The frontend should not respond to this message, but should more details. The frontend should not respond to this
continue listening for a ReadyForQuery message. message, but should continue listening for a ReadyForQuery
message.
</Para> </Para>
</ListItem> </ListItem>
</VarListEntry> </VarListEntry>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.65 2004/03/01 17:58:39 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.66 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -123,6 +123,11 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable> ...@@ -123,6 +123,11 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<indexterm>
<primary>TOAST</primary>
<secondary>per-column storage settings</secondary>
</indexterm>
<term><literal>SET STORAGE</literal></term> <term><literal>SET STORAGE</literal></term>
<listitem> <listitem>
<para> <para>
...@@ -240,7 +245,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable> ...@@ -240,7 +245,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
to be altered, but in the current version, this is the default to be altered, but in the current version, this is the default
behavior. (In releases before 7.1, <literal>ONLY</> was the behavior. (In releases before 7.1, <literal>ONLY</> was the
default behavior. The default can be altered by changing the default behavior. The default can be altered by changing the
configuration parameter <varname>sql_inheritance</varname>.) configuration parameter <xref linkend="guc-sql-inheritance">.)
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/analyze.sgml,v 1.18 2003/12/14 00:15:03 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/analyze.sgml,v 1.19 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -134,7 +134,7 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ (<rep ...@@ -134,7 +134,7 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ (<rep
<para> <para>
The extent of analysis can be controlled by adjusting the The extent of analysis can be controlled by adjusting the
<varname>default_statistics_target</varname> parameter variable, or <xref linkend="guc-default-statistics-target"> configuration variable, or
on a column-by-column basis by setting the per-column statistics on a column-by-column basis by setting the per-column statistics
target with <command>ALTER TABLE ... ALTER COLUMN ... SET target with <command>ALTER TABLE ... ALTER COLUMN ... SET
STATISTICS</command> (see <xref linkend="sql-altertable" STATISTICS</command> (see <xref linkend="sql-altertable"
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.11 2003/11/29 19:51:38 pgsql Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.12 2004/03/09 16:57:47 neilc Exp $ -->
<refentry id="sql-checkpoint"> <refentry id="sql-checkpoint">
<refmeta> <refmeta>
...@@ -27,11 +27,11 @@ CHECKPOINT ...@@ -27,11 +27,11 @@ CHECKPOINT
<para> <para>
Write-Ahead Logging (WAL) puts a checkpoint in the transaction log Write-Ahead Logging (WAL) puts a checkpoint in the transaction log
every so often. (To adjust the automatic checkpoint interval, see every so often. (To adjust the automatic checkpoint interval, see
the run-time the run-time configuration options <xref linkend="guc-checkpoint-segments">
configuration options <varname>checkpoint_segments</varname> and <xref linkend="guc-checkpoint-timeout">.) The
and <varname>checkpoint_timeout</varname>.) <command>CHECKPOINT</command> command forces an immediate
The <command>CHECKPOINT</command> command forces an immediate checkpoint checkpoint when the command is issued, without waiting for a
when the command is issued, without waiting for a scheduled checkpoint. scheduled checkpoint.
</para> </para>
<para> <para>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.78 2004/03/01 17:58:39 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.79 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -249,7 +249,7 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is: ...@@ -249,7 +249,7 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
should have OIDs (object identifiers) assigned to them. If should have OIDs (object identifiers) assigned to them. If
neither <literal>WITH OIDS</literal> nor <literal>WITHOUT neither <literal>WITH OIDS</literal> nor <literal>WITHOUT
OIDS</literal> is specified, the default value depends upon the OIDS</literal> is specified, the default value depends upon the
<varname>default_with_oids</varname> configuration parameter. (If <xref linkend="guc-default-with-oids"> configuration parameter. (If
the new table inherits from any tables that have OIDs, then the new table inherits from any tables that have OIDs, then
<literal>WITH OIDS</> is forced even if the command says <literal>WITH OIDS</> is forced even if the command says
<literal>WITHOUT OIDS</>.) <literal>WITHOUT OIDS</>.)
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.20 2004/01/10 23:28:44 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.21 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -106,7 +106,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name ...@@ -106,7 +106,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
This optional clause specifies whether the table created by This optional clause specifies whether the table created by
<command>CREATE TABLE AS</command> should include OIDs. If <command>CREATE TABLE AS</command> should include OIDs. If
neither form of this clause if specified, the value of the neither form of this clause if specified, the value of the
<varname>default_with_oids</varname> configuration parameter is <xref linkend="guc-default-with-oids"> configuration parameter is
used. used.
</para> </para>
</listitem> </listitem>
...@@ -152,7 +152,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name ...@@ -152,7 +152,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
the <command>CREATE TABLE AS</command> command allows the user to the <command>CREATE TABLE AS</command> command allows the user to
explicitely specify whether OIDs should be included. If the explicitely specify whether OIDs should be included. If the
presence of OIDs is not explicitely specified, presence of OIDs is not explicitely specified,
the <varname>default_with_oids</varname> configuration variable is the <xref linkend="guc-default-with-oids"> configuration variable is
used. While this variable currently defaults to true, the default used. While this variable currently defaults to true, the default
value may be changed in the future. Therefore, applications that value may be changed in the future. Therefore, applications that
require OIDs in the table created by <command>CREATE TABLE require OIDs in the table created by <command>CREATE TABLE
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_user.sgml,v 1.32 2003/12/14 00:15:03 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/create_user.sgml,v 1.33 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -98,7 +98,7 @@ where <replaceable class="PARAMETER">option</replaceable> can be: ...@@ -98,7 +98,7 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
These key words control whether the password is stored These key words control whether the password is stored
encrypted in the system catalogs. (If neither is specified, encrypted in the system catalogs. (If neither is specified,
the default behavior is determined by the configuration the default behavior is determined by the configuration
parameter <varname>password_encryption</varname>.) If the parameter <xref linkend="guc-password-encryption">.) If the
presented password string is already in MD5-encrypted format, presented password string is already in MD5-encrypted format,
then it is stored encrypted as-is, regardless of whether then it is stored encrypted as-is, regardless of whether
<literal>ENCRYPTED</> or <literal>UNENCRYPTED</> is specified <literal>ENCRYPTED</> or <literal>UNENCRYPTED</> is specified
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/explain.sgml,v 1.32 2003/11/29 19:51:38 pgsql Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/explain.sgml,v 1.33 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -100,8 +100,8 @@ ROLLBACK; ...@@ -100,8 +100,8 @@ ROLLBACK;
than just a summary. Usually this option is only useful for than just a summary. Usually this option is only useful for
debugging <productname>PostgreSQL</productname>. The debugging <productname>PostgreSQL</productname>. The
<literal>VERBOSE</literal> output is either pretty-printed or <literal>VERBOSE</literal> output is either pretty-printed or
not, depending on the setting of the not, depending on the setting of the <xref
<varname>explain_pretty_print</varname> configuration parameter. linkend="guc-explain-pretty-print"> configuration parameter.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.45 2004/02/03 17:34:02 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.46 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -376,7 +376,7 @@ PostgreSQL documentation ...@@ -376,7 +376,7 @@ PostgreSQL documentation
<listitem> <listitem>
<para> <para>
Default value of the <varname>DateStyle</varname> run-time Default value of the <xref linkend="guc-datestyle"> run-time
parameter. (The use of this environment variable is deprecated.) parameter. (The use of this environment variable is deprecated.)
</para> </para>
</listitem> </listitem>
...@@ -429,10 +429,11 @@ PostgreSQL documentation ...@@ -429,10 +429,11 @@ PostgreSQL documentation
<tip> <tip>
<para> <para>
You may be able to postpone reconfiguring your kernel by decreasing You may be able to postpone reconfiguring your kernel by
<varname>shared_buffers</varname> to reduce the shared memory consumption decreasing <xref linkend="guc-shared-buffers"> to reduce the
of <productname>PostgreSQL</>, and/or by reducing shared memory consumption of <productname>PostgreSQL</>, and/or
<varname>max_connections</varname> to reduce the semaphore consumption. by reducing <xref linkend="guc-max-connections"> to reduce the
semaphore consumption.
</para> </para>
</tip> </tip>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.75 2004/03/03 22:22:24 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.76 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -190,8 +190,8 @@ where <replaceable class="parameter">from_item</replaceable> can be one of: ...@@ -190,8 +190,8 @@ where <replaceable class="parameter">from_item</replaceable> can be one of:
tables are to be scanned, but in the current version, this is tables are to be scanned, but in the current version, this is
the default behavior. (In releases before 7.1, the default behavior. (In releases before 7.1,
<literal>ONLY</> was the default behavior.) The default <literal>ONLY</> was the default behavior.) The default
behavior can be modified by changing the behavior can be modified by changing the <xref
<varname>sql_interitance</varname> configuration option. linkend="guc-sql-inheritance"> configuration option.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -1023,7 +1023,7 @@ SELECT distributors.* FROM distributors d, distributors distributors; ...@@ -1023,7 +1023,7 @@ SELECT distributors.* FROM distributors d, distributors distributors;
<command>SELECT</command> statement that also contains an explicit <command>SELECT</command> statement that also contains an explicit
<literal>FROM</literal> clause. Also, it is possible to disable <literal>FROM</literal> clause. Also, it is possible to disable
the implicit-<literal>FROM</literal> feature by setting the the implicit-<literal>FROM</literal> feature by setting the
<varname>add_missing_from</> parameter to false. <xref linkend="guc-add-missing-from"> parameter to false.
</para> </para>
</refsect2> </refsect2>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/select_into.sgml,v 1.27 2003/12/13 23:59:07 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/select_into.sgml,v 1.28 2004/03/09 16:57:47 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -103,7 +103,7 @@ SELECT [ ALL | DISTINCT [ ON ( <replaceable class="PARAMETER">expression</replac ...@@ -103,7 +103,7 @@ SELECT [ ALL | DISTINCT [ ON ( <replaceable class="PARAMETER">expression</replac
rapidly incremented. As of <productname>PostgreSQL</> 7.5, the rapidly incremented. As of <productname>PostgreSQL</> 7.5, the
inclusion of OIDs in the table created by <command>SELECT inclusion of OIDs in the table created by <command>SELECT
INTO</command> is controlled by the INTO</command> is controlled by the
<varname>default_with_oids</varname> configuration variable. This <xref linkend="guc-default-with-oids"> configuration variable. This
variable currently defaults to true, but will likely default to variable currently defaults to true, but will likely default to
false in a future release of <productname>PostgreSQL</>. false in a future release of <productname>PostgreSQL</>.
</para> </para>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.246 2004/03/09 04:43:06 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.247 2004/03/09 16:57:47 neilc Exp $
--> -->
<Chapter Id="runtime"> <Chapter Id="runtime">
...@@ -570,7 +570,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -570,7 +570,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-tcpip-socket" xreflabel="tcpip_socket">
<term><varname>tcpip_socket</varname> (<type>boolean</type>)</term> <term><varname>tcpip_socket</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -582,7 +582,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -582,7 +582,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-max-connections" xreflabel="max_connections">
<term><varname>max_connections</varname> (<type>integer</type>)</term> <term><varname>max_connections</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -603,18 +603,20 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -603,18 +603,20 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-superuser-reserved-connections"
xreflabel="superuser_reserved_connections">
<term><varname>superuser_reserved_connections</varname> <term><varname>superuser_reserved_connections</varname>
(<type>integer</type>)</term> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
Determines the number of <quote>connection slots</quote> that Determines the number of <quote>connection slots</quote> that
are reserved for connections by <productname>PostgreSQL</> are reserved for connections by <productname>PostgreSQL</>
superusers. At most <varname>max_connections</> connections can superusers. At most <xref linkend="guc-max-connections">
ever be active simultaneously. Whenever the number of active connections can ever be active simultaneously. Whenever the
concurrent connections is at least <varname>max_connections</> minus number of active concurrent connections is at least
<varname>superuser_reserved_connections</varname>, new connections <varname>max_connections</> minus
will be accepted only for superusers. <varname>superuser_reserved_connections</varname>, new
connections will be accepted only for superusers.
</para> </para>
<para> <para>
...@@ -625,7 +627,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -625,7 +627,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-port" xreflabel="port">
<term><varname>port</varname> (<type>integer</type>)</term> <term><varname>port</varname> (<type>integer</type>)</term>
<indexterm><primary>port</></> <indexterm><primary>port</></>
<listitem> <listitem>
...@@ -637,7 +639,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -637,7 +639,7 @@ SET ENABLE_SEQSCAN TO OFF;
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-unix-socket-directory" xreflabel="unix_socket_directory">
<term><varname>unix_socket_directory</varname> (<type>string</type>)</term> <term><varname>unix_socket_directory</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -649,7 +651,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -649,7 +651,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-unix-socket-group" xreflabel="unix_socket_group">
<term><varname>unix_socket_group</varname> (<type>string</type>)</term> <term><varname>unix_socket_group</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -665,7 +667,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -665,7 +667,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-unix-socket-permissions" xreflabel="unix_socket_permissions">
<term><varname>unix_socket_permissions</varname> (<type>integer</type>)</term> <term><varname>unix_socket_permissions</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -699,7 +701,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -699,7 +701,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-virtual-host" xreflabel="virtual_host">
<term><varname>virtual_host</varname> (<type>string</type>)</term> <term><varname>virtual_host</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -713,7 +715,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -713,7 +715,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-rendezvous-name" xreflabel="rendezvous_name">
<term><varname>rendezvous_name</varname> (<type>string</type>)</term> <term><varname>rendezvous_name</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -729,7 +731,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -729,7 +731,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Security and Authentication</title> <title>Security and Authentication</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-authentication-timeout" xreflabel="authentication_timeout">
<term><varname>authentication_timeout</varname> (<type>integer</type>)</term> <term><varname>authentication_timeout</varname> (<type>integer</type>)</term>
<indexterm><primary>timeout</><secondary>client authentication</></indexterm> <indexterm><primary>timeout</><secondary>client authentication</></indexterm>
<indexterm><primary>client authentication</><secondary>timeout during</></indexterm> <indexterm><primary>client authentication</><secondary>timeout during</></indexterm>
...@@ -745,11 +747,10 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -745,11 +747,10 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-ssl" xreflabel="ssl">
<indexterm> <indexterm>
<primary>SSL</primary> <primary>SSL</primary>
</indexterm> </indexterm>
<term><varname>ssl</varname> (<type>boolean</type>)</term> <term><varname>ssl</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -760,7 +761,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -760,7 +761,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-password-encryption" xreflabel="password_encryption">
<term><varname>password_encryption</varname> (<type>boolean</type>)</term> <term><varname>password_encryption</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -772,7 +773,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -772,7 +773,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-krb-server-keyfile" xreflabel="krb_server_keyfile">
<term><varname>krb_server_keyfile</varname> (<type>string</type>)</term> <term><varname>krb_server_keyfile</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -782,7 +783,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -782,7 +783,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-db-user-namespace" xreflabel="db_user_namespace">
<term><varname>db_user_namespace</varname> (<type>boolean</type>)</term> <term><varname>db_user_namespace</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -827,7 +828,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -827,7 +828,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Memory</title> <title>Memory</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-shared-buffers" xreflabel="shared_buffers">
<term><varname>shared_buffers</varname> (<type>integer</type>)</term> <term><varname>shared_buffers</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -837,7 +838,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -837,7 +838,7 @@ SET ENABLE_SEQSCAN TO OFF;
<application>initdb</>). Each buffer is 8192 bytes, unless a <application>initdb</>). Each buffer is 8192 bytes, unless a
different value of <symbol>BLCKSZ</symbol> was chosen when building different value of <symbol>BLCKSZ</symbol> was chosen when building
the server. This setting must be at least 16, as well as at the server. This setting must be at least 16, as well as at
least twice the value of <varname>max_connections</varname>; least twice the value of <xref linkend="guc-max-connections">;
however, settings significantly higher than the minimum are however, settings significantly higher than the minimum are
usually needed for good performance. Values of a few thousand usually needed for good performance. Values of a few thousand
are recommended for production installations. This option can are recommended for production installations. This option can
...@@ -854,7 +855,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -854,7 +855,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-work-mem" xreflabel="work_mem">
<term><varname>work_mem</varname> (<type>integer</type>)</term> <term><varname>work_mem</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -876,7 +877,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -876,7 +877,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-maintenance-work-mem" xreflabel="maintenance_work_mem">
<term><varname>maintenance_work_mem</varname> (<type>integer</type>)</term> <term><varname>maintenance_work_mem</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -900,7 +901,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -900,7 +901,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Free Space Map</title> <title>Free Space Map</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-max-fsm-pages" xreflabel="max_fsm_pages">
<term><varname>max_fsm_pages</varname> (<type>integer</type>)</term> <term><varname>max_fsm_pages</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -913,7 +914,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -913,7 +914,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-max-fsm-relations" xreflabel="max_fsm_relations">
<term><varname>max_fsm_relations</varname> (<type>integer</type>)</term> <term><varname>max_fsm_relations</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -932,7 +933,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -932,7 +933,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Kernel Resource Usage</title> <title>Kernel Resource Usage</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-max-files-per-process" xreflabel="max_files_per_process">
<term><varname>max_files_per_process</varname> (<type>integer</type>)</term> <term><varname>max_files_per_process</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -949,7 +950,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -949,7 +950,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-preload-libraries" xreflabel="preload_libraries">
<term><varname>preload_libraries</varname> (<type>string</type>)</term> <term><varname>preload_libraries</varname> (<type>string</type>)</term>
<indexterm><primary>preload_libraries</></> <indexterm><primary>preload_libraries</></>
<listitem> <listitem>
...@@ -1025,7 +1026,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1025,7 +1026,7 @@ SET ENABLE_SEQSCAN TO OFF;
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-vacuum-cost-page-hit" xreflabel="vacuum_cost_page_hit">
<term><varname>vacuum_cost_page_hit</varname> (<type>integer</type>)</term> <term><varname>vacuum_cost_page_hit</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1037,7 +1038,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1037,7 +1038,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-vacuum-cost-page-miss" xreflabel="vacuum_cost_page_miss">
<term><varname>vacuum_cost_page_miss</varname> (<type>integer</type>)</term> <term><varname>vacuum_cost_page_miss</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1049,7 +1050,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1049,7 +1050,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-vacuum-cost-page-dirty" xreflabel="vacuum_cost_page_dirty">
<term><varname>vacuum_cost_page_dirty</varname> (<type>integer</type>)</term> <term><varname>vacuum_cost_page_dirty</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1061,7 +1062,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1061,7 +1062,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-vacuum-cost-limit" xreflabel="vacuum_cost_limit">
<term><varname>vacuum_cost_limit</varname> (<type>integer</type>)</term> <term><varname>vacuum_cost_limit</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1071,7 +1072,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1071,7 +1072,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-vacuum-cost-naptime" xreflabel="vacuum_cost_naptime">
<term><varname>vacuum_cost_naptime</varname> (<type>integer</type>)</term> <term><varname>vacuum_cost_naptime</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1118,7 +1119,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1118,7 +1119,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Settings</title> <title>Settings</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-fsync" xreflabel="fsync">
<indexterm> <indexterm>
<primary>fsync</primary> <primary>fsync</primary>
</indexterm> </indexterm>
...@@ -1168,7 +1169,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1168,7 +1169,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-wal-sync-method" xreflabel="wal_sync_method">
<term><varname>wal_sync_method</varname> (<type>string</type>)</term> <term><varname>wal_sync_method</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1185,7 +1186,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1185,7 +1186,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-wal-buffers" xreflabel="wal_buffers">
<term><varname>wal_buffers</varname> (<type>integer</type>)</term> <term><varname>wal_buffers</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1202,7 +1203,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1202,7 +1203,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Checkpoints</title> <title>Checkpoints</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-checkpoint-segments" xreflabel="checkpoint_segments">
<term><varname>checkpoint_segments</varname> (<type>integer</type>)</term> <term><varname>checkpoint_segments</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1214,7 +1215,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1214,7 +1215,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-checkpoint-timeout" xreflabel="checkpoint_timeout">
<term><varname>checkpoint_timeout</varname> (<type>integer</type>)</term> <term><varname>checkpoint_timeout</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1226,7 +1227,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1226,7 +1227,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-checkpoint-warning" xreflabel="checkpoint_warning">
<term><varname>checkpoint_warning</varname> (<type>integer</type>)</term> <term><varname>checkpoint_warning</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1239,7 +1240,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1239,7 +1240,7 @@ SET ENABLE_SEQSCAN TO OFF;
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-commit-delay" xreflabel="commit_delay">
<term><varname>commit_delay</varname> (<type>integer</type>)</term> <term><varname>commit_delay</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1258,7 +1259,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1258,7 +1259,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-commit-siblings" xreflabel="commit_siblings">
<term><varname>commit_siblings</varname> (<type>integer</type>)</term> <term><varname>commit_siblings</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1299,7 +1300,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1299,7 +1300,7 @@ SET ENABLE_SEQSCAN TO OFF;
</note> </note>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-enable-hashagg" xreflabel="enable_hashagg">
<term><varname>enable_hashagg</varname> (<type>boolean</type>)</term> <term><varname>enable_hashagg</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1310,7 +1311,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1310,7 +1311,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-enable-hashjoin" xreflabel="enable_hashjoin">
<term><varname>enable_hashjoin</varname> (<type>boolean</type>)</term> <term><varname>enable_hashjoin</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1321,7 +1322,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1321,7 +1322,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-enable-indexscan" xreflabel="enable_indexscan">
<indexterm> <indexterm>
<primary>index scan</primary> <primary>index scan</primary>
</indexterm> </indexterm>
...@@ -1336,7 +1337,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1336,7 +1337,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-enable-mergejoin" xreflabel="enable_mergejoin">
<term><varname>enable_mergejoin</varname> (<type>boolean</type>)</term> <term><varname>enable_mergejoin</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1347,7 +1348,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1347,7 +1348,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-enable-nestloop" xreflabel="enable_nestloop">
<term><varname>enable_nestloop</varname> (<type>boolean</type>)</term> <term><varname>enable_nestloop</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1360,7 +1361,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1360,7 +1361,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-enable-seqscan" xreflabel="enable_seqscan">
<indexterm> <indexterm>
<primary>sequential scan</primary> <primary>sequential scan</primary>
</indexterm> </indexterm>
...@@ -1377,7 +1378,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1377,7 +1378,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-enable-sort" xreflabel="enable_sort">
<term><varname>enable_sort</varname> (<type>boolean</type>)</term> <term><varname>enable_sort</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1390,7 +1391,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1390,7 +1391,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-enable-tidscan" xreflabel="enable_tidscan">
<term><varname>enable_tidscan</varname> (<type>boolean</type>)</term> <term><varname>enable_tidscan</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1419,7 +1420,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1419,7 +1420,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-effective-cache-size" xreflabel="effective_cache_size">
<term><varname>effective_cache_size</varname> (<type>floating point</type>)</term> <term><varname>effective_cache_size</varname> (<type>floating point</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1432,7 +1433,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1432,7 +1433,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-random-page-cost" xreflabel="random_page_cost">
<term><varname>random_page_cost</varname> (<type>floating point</type>)</term> <term><varname>random_page_cost</varname> (<type>floating point</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1446,7 +1447,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1446,7 +1447,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-cpu-tuple-cost" xreflabel="cpu_tuple_cost">
<term><varname>cpu_tuple_cost</varname> (<type>floating point</type>)</term> <term><varname>cpu_tuple_cost</varname> (<type>floating point</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1457,7 +1458,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1457,7 +1458,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-cpu-index-tuple-cost" xreflabel="cpu_index_tuple_cost">
<term><varname>cpu_index_tuple_cost</varname> (<type>floating point</type>)</term> <term><varname>cpu_index_tuple_cost</varname> (<type>floating point</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1469,7 +1470,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1469,7 +1470,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-cpu-operator-cost" xreflabel="cpu_operator_cost">
<term><varname>cpu_operator_cost</varname> (<type>floating point</type>)</term> <term><varname>cpu_operator_cost</varname> (<type>floating point</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1488,7 +1489,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1488,7 +1489,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-geqo" xreflabel="geqo">
<indexterm> <indexterm>
<primary>genetic query optimization</primary> <primary>genetic query optimization</primary>
</indexterm> </indexterm>
...@@ -1500,14 +1501,15 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1500,14 +1501,15 @@ SET ENABLE_SEQSCAN TO OFF;
<listitem> <listitem>
<para> <para>
Enables or disables genetic query optimization, which is an Enables or disables genetic query optimization, which is an
algorithm that attempts to do query planning without exhaustive algorithm that attempts to do query planning without
searching. This is on by default. See also the various other exhaustive searching. This is on by default. The
<varname>geqo_</varname> settings. <varname>geqo_threshold</varname> variable provides a more
granular way to disable GEQO for certain classes of queries.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-geqo-threshold" xreflabel="geqo_threshold">
<term><varname>geqo_threshold</varname> (<type>integer</type>)</term> <term><varname>geqo_threshold</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1521,37 +1523,63 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1521,37 +1523,63 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-geqo-effort" xreflabel="geqo_effort">
<term><varname>geqo_effort</varname> (<type>integer</type>)</term> <term><varname>geqo_effort</varname>
(<type>integer</type>)</term>
<listitem>
<para>
Controls the tradeoff between planning time and query plan
efficiency in GEQO. Valid values for this variable range
from 1 to 10; the default is 5. Larger values increasee the
time spent doing query planning, but increase the likelyhood
that an efficient query plan will be chosen.
</para>
<para>
<varname>geqo_effort</varname> doesn't actually do anything
directly; it is only used to compute the default values for
the other variables that influence GEQO behavior (described
below). If you prefer, you can set the other parameters by
hand instead.
</para>
</listitem>
</varlistentry>
<varlistentry id="guc-geqo-pool-size" xreflabel="geqo_pool_size">
<term><varname>geqo_pool_size</varname> (<type>integer</type>)</term> <term><varname>geqo_pool_size</varname> (<type>integer</type>)</term>
<listitem>
<para>
Controls the pool size used by GEQO. The pool size is the
number of individuals in the genetic population. It must be
at least two, and useful values are typically 100 to 1000. If
it is set to zero (the default setting) then a suitable
default is chosen based on <varname>geqo_effort</varname> and
the number of tables in the query.
</para>
</listitem>
</varlistentry>
<varlistentry id="guc-geqo-generations" xreflabel="geqo_generations">
<term><varname>geqo_generations</varname> (<type>integer</type>)</term> <term><varname>geqo_generations</varname> (<type>integer</type>)</term>
<listitem>
<para>
Controls the number of generations used by GEQO. Generations
specifies the number of iterations of the algorithm. It must
be at least one, and useful values are in the same range as
the pool size. If it is set to zero (the default setting)
then a suitable default is chosen based on
<varname>geqo_pool_size</varname>.
</para>
</listitem>
</varlistentry>
<varlistentry id="guc-geqo-selection-bias" xreflabel="geqo_selection_bias">
<term><varname>geqo_selection_bias</varname> (<type>floating point</type>)</term> <term><varname>geqo_selection_bias</varname> (<type>floating point</type>)</term>
<listitem> <listitem>
<para> <para>
Various tuning parameters for the genetic query optimization Controls the selection bias used by GEQO. The selection bias
algorithm. The recommended one to modify is is the selective pressure within the population. Values can be
<varname>geqo_effort</varname>, which can range from 1 to 10 with from 1.50 to 2.00; the latter is the default.
a default of 5. Larger values increase the time spent in planning
but make it more likely that a good plan will be found.
<varname>geqo_effort</varname> doesn't actually do anything directly,
it is just used to compute the default values for the other
parameters. If you prefer, you can set the other parameters by hand
instead.
The pool size is the number of individuals in the genetic population.
It must be at least two, and useful values are typically 100 to 1000.
If it is set to zero (the default setting) then a suitable default
is chosen based on <varname>geqo_effort</varname> and the number of
tables in the query.
Generations specifies the number of iterations of the algorithm.
It must be at least one, and useful values are in the same range
as the pool size.
If it is set to zero (the default setting) then a suitable default
is chosen based on the pool size.
The run time of the algorithm is roughly proportional to the sum of
pool size and generations.
The selection bias is the selective pressure within the
population. Values can be from 1.50 to 2.00; the latter is the
default.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -1563,7 +1591,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1563,7 +1591,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-default-statistics-target" xreflabel="default_statistics_target">
<term><varname>default_statistics_target</varname> (<type>integer</type>)</term> <term><varname>default_statistics_target</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1578,7 +1606,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1578,7 +1606,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-from-collapse-limit" xreflabel="from_collapse_limit">
<term><varname>from_collapse_limit</varname> (<type>integer</type>)</term> <term><varname>from_collapse_limit</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1586,12 +1614,12 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1586,12 +1614,12 @@ SET ENABLE_SEQSCAN TO OFF;
resulting <literal>FROM</literal> list would have no more than resulting <literal>FROM</literal> list would have no more than
this many items. Smaller values reduce planning time but may this many items. Smaller values reduce planning time but may
yield inferior query plans. The default is 8. It is usually yield inferior query plans. The default is 8. It is usually
wise to keep this less than <varname>geqo_threshold</varname>. wise to keep this less than <xref linkend="guc-geqo-threshold">.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-join-collapse-limit" xreflabel="join_collapse_limit">
<term><varname>join_collapse_limit</varname> (<type>integer</type>)</term> <term><varname>join_collapse_limit</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1661,7 +1689,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1661,7 +1689,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-syslog" xreflabel="syslog">
<term><varname>syslog</varname> (<type>integer</type>)</term> <term><varname>syslog</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1677,7 +1705,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1677,7 +1705,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-syslog-facility" xreflabel="syslog_facility">
<term><varname>syslog_facility</varname> (<type>string</type>)</term> <term><varname>syslog_facility</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1694,7 +1722,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1694,7 +1722,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-syslog-ident" xreflabel="syslog_ident">
<term><varname>syslog_ident</varname> (<type>string</type>)</term> <term><varname>syslog_ident</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1714,7 +1742,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1714,7 +1742,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-client-min-messages" xreflabel="client_min_messages">
<term><varname>client_min_messages</varname> (<type>string</type>)</term> <term><varname>client_min_messages</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1731,7 +1759,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1731,7 +1759,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-min-messages" xreflabel="log_min_messages">
<term><varname>log_min_messages</varname> (<type>string</type>)</term> <term><varname>log_min_messages</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1750,7 +1778,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1750,7 +1778,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-error-verbosity" xreflabel="log_error_verbosity">
<term><varname>log_error_verbosity</varname> (<type>string</type>)</term> <term><varname>log_error_verbosity</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1762,7 +1790,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1762,7 +1790,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-min-error-statement" xreflabel="log_min_error_statement">
<term><varname>log_min_error_statement</varname> (<type>string</type>)</term> <term><varname>log_min_error_statement</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1786,7 +1814,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1786,7 +1814,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-min-duration-statement" xreflabel="log_min_duration_statement">
<term><varname>log_min_duration_statement</varname> (<type>integer</type>)</term> <term><varname>log_min_duration_statement</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1805,17 +1833,18 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1805,17 +1833,18 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-silent-mode" xreflabel="silent_mode">
<term><varname>silent_mode</varname> (<type>boolean</type>)</term> <term><varname>silent_mode</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
Runs the server silently. If this option is set, the server Runs the server silently. If this option is set, the server
will automatically run in background and any controlling terminals will automatically run in background and any controlling
are disassociated. Thus, no messages are written to standard terminals are disassociated. Thus, no messages are written to
output or standard error (same effect as <command>postmaster</>'s <option>-S</option> standard output or standard error (same effect as
option). Unless <command>postmaster</>'s <option>-S</option> option). Unless
<application>syslog</> logging is enabled, using this option is <application>syslog</> logging is enabled, using this option
discouraged since it makes it impossible to see error messages. is discouraged because it makes it impossible to see error
messages.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -1908,9 +1937,9 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1908,9 +1937,9 @@ SET ENABLE_SEQSCAN TO OFF;
</sect3> </sect3>
<sect3 id="runtime-config-logging-what"> <sect3 id="runtime-config-logging-what">
<title>What To Log</title> <title>What To Log</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term><varname>debug_print_parse</varname> (<type>boolean</type>)</term> <term><varname>debug_print_parse</varname> (<type>boolean</type>)</term>
<term><varname>debug_print_rewritten</varname> (<type>boolean</type>)</term> <term><varname>debug_print_rewritten</varname> (<type>boolean</type>)</term>
...@@ -1931,7 +1960,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1931,7 +1960,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-connections" xreflabel="log_connections">
<term><varname>log_connections</varname> (<type>boolean</type>)</term> <term><varname>log_connections</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1943,8 +1972,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1943,8 +1972,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry id="guc-log-disconnections" xreflabel="log_disconnections">
<varlistentry>
<term><varname>log_disconnections</varname> (<type>boolean</type>)</term> <term><varname>log_disconnections</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -1958,21 +1986,21 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1958,21 +1986,21 @@ SET ENABLE_SEQSCAN TO OFF;
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-duration" xreflabel="log_duration">
<term><varname>log_duration</varname> (<type>boolean</type>)</term> <term><varname>log_duration</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
Causes the duration of every completed statement to be logged. Causes the duration of every completed statement to be logged.
To use this option, enable <varname>log_statement</> and To use this option, it is recommended that you also enable
<varname>log_pid</> so you can link the statement to the <varname>log_statement</> and <varname>log_pid</> so that you
duration using the process ID. The default is off. can link the statement to the duration using the process
Only superusers can turn off this option if it is enabled by ID. The default is off. Only superusers can turn off this
the administrator. option if it is enabled by the administrator.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-line-prefix" xreflabel="log_line_prefix">
<term><varname>log_line_prefix</varname> (<type>string</type>)</term> <term><varname>log_line_prefix</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2077,7 +2105,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2077,7 +2105,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-statement" xreflabel="log_statement">
<term><varname>log_statement</varname> (<type>boolean</type>)</term> <term><varname>log_statement</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2091,7 +2119,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2091,7 +2119,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-timestamp" xreflabel="log_timestamp">
<term><varname>log_timestamp</varname> (<type>boolean</type>)</term> <term><varname>log_timestamp</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2101,7 +2129,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2101,7 +2129,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-hostname" xreflabel="log_hostname">
<term><varname>log_hostname</varname> (<type>boolean</type>)</term> <term><varname>log_hostname</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2114,7 +2142,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2114,7 +2142,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-log-source-port" xreflabel="log_source_port">
<term><varname>log_source_port</varname> (<type>boolean</type>)</term> <term><varname>log_source_port</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2161,7 +2189,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2161,7 +2189,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Query and Index Statistics Collector</title> <title>Query and Index Statistics Collector</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-stats-start-collector" xreflabel="stats_start_collector">
<term><varname>stats_start_collector</varname> (<type>boolean</type>)</term> <term><varname>stats_start_collector</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2174,7 +2202,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2174,7 +2202,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-stats-command-string" xreflabel="stats_command_string">
<term><varname>stats_command_string</varname> (<type>boolean</type>)</term> <term><varname>stats_command_string</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2206,7 +2234,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2206,7 +2234,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-stats-reset-on-server-start" xreflabel="stats_reset_on_server_start">
<term><varname>stats_reset_on_server_start</varname> (<type>boolean</type>)</term> <term><varname>stats_reset_on_server_start</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2229,7 +2257,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2229,7 +2257,7 @@ SET ENABLE_SEQSCAN TO OFF;
<title>Statement Behavior</title> <title>Statement Behavior</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-search-path" xreflabel="search_path">
<term><varname>search_path</varname> (<type>string</type>)</term> <term><varname>search_path</varname> (<type>string</type>)</term>
<indexterm><primary>search_path</></> <indexterm><primary>search_path</></>
<indexterm><primary>path</><secondary>for schemas</></> <indexterm><primary>path</><secondary>for schemas</></>
...@@ -2296,7 +2324,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2296,7 +2324,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-check-function-bodies" xreflabel="check_function_bodies">
<term><varname>check_function_bodies</varname> (<type>boolean</type>)</term> <term><varname>check_function_bodies</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2308,7 +2336,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2308,7 +2336,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-default-transaction-isolation" xreflabel="default_transaction_isolation">
<indexterm> <indexterm>
<primary>transaction isolation level</primary> <primary>transaction isolation level</primary>
</indexterm> </indexterm>
...@@ -2331,7 +2359,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2331,7 +2359,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-default-transaction-read-only" xreflabel="default_transaction_read_only">
<indexterm> <indexterm>
<primary>read-only transaction</primary> <primary>read-only transaction</primary>
</indexterm> </indexterm>
...@@ -2350,7 +2378,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2350,7 +2378,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-statement-timeout" xreflabel="statement_timeout">
<term><varname>statement_timeout</varname> (<type>integer</type>)</term> <term><varname>statement_timeout</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2368,7 +2396,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2368,7 +2396,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-datestyle" xreflabel="datestyle">
<term><varname>datestyle</varname> (<type>string</type>)</term> <term><varname>datestyle</varname> (<type>string</type>)</term>
<indexterm><primary>date style</></> <indexterm><primary>date style</></>
<listitem> <listitem>
...@@ -2389,7 +2417,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2389,7 +2417,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-timezone" xreflabel="timezone">
<term><varname>timezone</varname> (<type>string</type>)</term> <term><varname>timezone</varname> (<type>string</type>)</term>
<indexterm><primary>time zone</></> <indexterm><primary>time zone</></>
<listitem> <listitem>
...@@ -2402,7 +2430,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2402,7 +2430,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-australian-timezones" xreflabel="australian_timezones">
<term><varname>australian_timezones</varname> (<type>boolean</type>)</term> <term><varname>australian_timezones</varname> (<type>boolean</type>)</term>
<indexterm><primary>time zone</><secondary>Australian</></> <indexterm><primary>time zone</><secondary>Australian</></>
<listitem> <listitem>
...@@ -2416,7 +2444,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2416,7 +2444,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-extra-float-digits" xreflabel="extra_float_digits">
<indexterm> <indexterm>
<primary>significant digits</primary> <primary>significant digits</primary>
</indexterm> </indexterm>
...@@ -2440,7 +2468,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2440,7 +2468,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-client-encoding" xreflabel="client_encoding">
<term><varname>client_encoding</varname> (<type>string</type>)</term> <term><varname>client_encoding</varname> (<type>string</type>)</term>
<indexterm><primary>character set</></> <indexterm><primary>character set</></>
<listitem> <listitem>
...@@ -2451,7 +2479,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2451,7 +2479,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-lc-messages" xreflabel="lc_messages">
<term><varname>lc_messages</varname> (<type>string</type>)</term> <term><varname>lc_messages</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2472,7 +2500,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2472,7 +2500,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-lc-monetary" xreflabel="lc_monetary">
<term><varname>lc_monetary</varname> (<type>string</type>)</term> <term><varname>lc_monetary</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2487,7 +2515,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2487,7 +2515,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-lc-numeric" xreflabel="lc_numeric">
<term><varname>lc_numeric</varname> (<type>string</type>)</term> <term><varname>lc_numeric</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2502,7 +2530,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2502,7 +2530,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-lc-time" xreflabel="lc_time">
<term><varname>lc_time</varname> (<type>string</type>)</term> <term><varname>lc_time</varname> (<type>string</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2525,7 +2553,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2525,7 +2553,7 @@ SET ENABLE_SEQSCAN TO OFF;
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-explain-pretty-print" xreflabel="explain_pretty_print">
<term><varname>explain_pretty_print</varname> (<type>boolean</type>)</term> <term><varname>explain_pretty_print</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2536,7 +2564,7 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -2536,7 +2564,7 @@ SET ENABLE_SEQSCAN TO OFF;
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-dynamic-library-path" xreflabel="dynamic_library_path">
<term><varname>dynamic_library_path</varname> (<type>string</type>)</term> <term><varname>dynamic_library_path</varname> (<type>string</type>)</term>
<indexterm><primary>dynamic_library_path</></> <indexterm><primary>dynamic_library_path</></>
<indexterm><primary>dynamic loading</></> <indexterm><primary>dynamic loading</></>
...@@ -2582,7 +2610,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2582,7 +2610,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-max-expr-depth" xreflabel="max_expr_depth">
<term><varname>max_expr_depth</varname> (<type>integer</type>)</term> <term><varname>max_expr_depth</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2603,7 +2631,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2603,7 +2631,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-deadlock-timeout" xreflabel="deadlock_timeout">
<indexterm> <indexterm>
<primary>deadlock</primary> <primary>deadlock</primary>
<secondary>timeout during</secondary> <secondary>timeout during</secondary>
...@@ -2634,7 +2662,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2634,7 +2662,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-max-locks-per-transaction" xreflabel="max_locks_per_transaction">
<term><varname>max_locks_per_transaction</varname> (<type>integer</type>)</term> <term><varname>max_locks_per_transaction</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2659,7 +2687,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2659,7 +2687,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<title>Previous PostgreSQL Versions</title> <title>Previous PostgreSQL Versions</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-add-missing-from" xreflabel="add_missing_from">
<term><varname>add_missing_from</varname> (<type>boolean</type>)</term> <term><varname>add_missing_from</varname> (<type>boolean</type>)</term>
<indexterm><primary>FROM</><secondary>missing</></> <indexterm><primary>FROM</><secondary>missing</></>
<listitem> <listitem>
...@@ -2676,7 +2704,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2676,7 +2704,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-regex-flavor" xreflabel="regex_flavor">
<term><varname>regex_flavor</varname> (<type>string</type>)</term> <term><varname>regex_flavor</varname> (<type>string</type>)</term>
<indexterm><primary>regular expressions</></> <indexterm><primary>regular expressions</></>
<listitem> <listitem>
...@@ -2690,7 +2718,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2690,7 +2718,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-sql-inheritance" xreflabel="sql_inheritance">
<term><varname>sql_inheritance</varname> (<type>boolean</type>)</term> <term><varname>sql_inheritance</varname> (<type>boolean</type>)</term>
<indexterm><primary>inheritance</></> <indexterm><primary>inheritance</></>
<listitem> <listitem>
...@@ -2706,7 +2734,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2706,7 +2734,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-default-with-oids" xreflabel="default_with_oids">
<term><varname>default_with_oids</varname> (<type>boolean</type>)</term> <term><varname>default_with_oids</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2743,7 +2771,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2743,7 +2771,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<title>Platform and Client Compatibility</title> <title>Platform and Client Compatibility</title>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-transform-null-equals" xreflabel="transform_null_equals">
<term><varname>transform_null_equals</varname> (<type>boolean</type>)</term> <term><varname>transform_null_equals</varname> (<type>boolean</type>)</term>
<indexterm><primary>IS NULL</></> <indexterm><primary>IS NULL</></>
<listitem> <listitem>
...@@ -2795,40 +2823,44 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2795,40 +2823,44 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<para> <para>
The following options are available read-only, and are determined The following options are available read-only, and are determined
at source code compile time. As such, they have been excluded from the when <productname>PostgreSQL</productname> is compiled. As such,
sample <filename>postgresql.conf</> file. They determine various aspects they have been excluded from the sample
of <productname>PostgreSQL</productname> behavior that may be of interest <filename>postgresql.conf</> file. These options determine
to certain applications, particularly administrative front-ends. various aspects of <productname>PostgreSQL</productname> behavior
that may be of interest to certain applications, particularly
administrative front-ends.
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-block-size" xreflabel="block_size">
<term><varname>block_size</varname> (<type>integer</type>)</term> <term><varname>block_size</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
Shows the size of a disk block. It is determined by the value Shows the size of a disk block. It is determined by the value
of <literal>BLCKSZ</> when building the server. The default of <literal>BLCKSZ</> when building the server. The default
value is 8192 bytes. The <varname>shared_buffers</varname> setting is value is 8192 bytes. The meaning of some configuration
influenced by <varname>block_size</varname>. See variables (such as <xref linkend="guc-shared-buffers">) is
<xref linkend="runtime-config-resource"> for information. influenced by <varname>block_size</varname>. See <xref
linkend="runtime-config-resource"> for information.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-integer-datetimes" xreflabel="integer_datetimes">
<term><varname>integer_datetimes</varname> (<type>boolean</type>)</term> <term><varname>integer_datetimes</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
Shows <literal>on</literal> if <productname>PostgreSQL</productname> Shows whether <productname>PostgreSQL</productname> was built
was built with support for 64-bit integer dates and times. It is with support for 64-bit integer dates and times. It is set by
set by configuring with <literal>--enable-integer-datetimes</literal>. configuring with <literal>--enable-integer-datetimes</literal>
The default value is <literal>off</literal>. when building <productname>PostgreSQL</productname>. The
default value is <literal>off</literal>.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-max-function-args" xreflabel="max_function_args">
<term><varname>max_function_args</varname> (<type>integer</type>)</term> <term><varname>max_function_args</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2839,7 +2871,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2839,7 +2871,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-max-identifier-length" xreflabel="max_identifier_length">
<term><varname>max_identifier_length</varname> (<type>integer</type>)</term> <term><varname>max_identifier_length</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2852,7 +2884,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2852,7 +2884,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-max-index-keys" xreflabel="max_index_keys">
<term><varname>max_index_keys</varname> (<type>integer</type>)</term> <term><varname>max_index_keys</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2880,7 +2912,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2880,7 +2912,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry id="guc-debug-assertions" xreflabel="debug_assertions">
<term><varname>debug_assertions</varname> (<type>boolean</type>)</term> <term><varname>debug_assertions</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2898,7 +2930,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2898,7 +2930,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-pre-auth-delay" xreflabel="pre_auth_delay">
<term><varname>pre_auth_delay</varname> (<type>integer</type>)</term> <term><varname>pre_auth_delay</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2911,14 +2943,14 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2911,14 +2943,14 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-trace-notify" xreflabel="trace_notify">
<term><varname>trace_notify</varname> (<type>boolean</type>)</term> <term><varname>trace_notify</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
Generates a great amount of debugging output for the Generates a great amount of debugging output for the
<command>LISTEN</command> and <command>NOTIFY</command> <command>LISTEN</command> and <command>NOTIFY</command>
commands. <varname>client_min_messages</varname> or commands. <xref linkend="guc-client-min-messages"> or
<varname>log_min_messages</varname> must be <xref linkend="guc-log-min-messages"> must be
<literal>DEBUG1</literal> or lower to send this output to the <literal>DEBUG1</literal> or lower to send this output to the
client or server log, respectively. client or server log, respectively.
</para> </para>
...@@ -2940,7 +2972,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2940,7 +2972,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-wal-debug" xreflabel="wal_debug">
<term><varname>wal_debug</varname> (<type>boolean</type>)</term> <term><varname>wal_debug</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -2952,7 +2984,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2952,7 +2984,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry id="guc-zero-damaged-pages" xreflabel="zero-damaged-pages">
<term><varname>zero_damaged_pages</varname> (<type>boolean</type>)</term> <term><varname>zero_damaged_pages</varname> (<type>boolean</type>)</term>
<listitem> <listitem>
<para> <para>
...@@ -3049,12 +3081,12 @@ $ <userinput>postmaster -o '-S 1024 -s'</userinput> ...@@ -3049,12 +3081,12 @@ $ <userinput>postmaster -o '-S 1024 -s'</userinput>
</footnote> </footnote>
</entry> </entry>
<entry> <entry>
<literal>enable_indexscan=off</>, <literal>enable_indexscan = off</>,
<literal>enable_hashjoin=off</>, <literal>enable_hashjoin = off</>,
<literal>enable_mergejoin=off</>, <literal>enable_mergejoin = off</>,
<literal>enable_nestloop=off</>, <literal>enable_nestloop = off</>,
<literal>enable_seqscan=off</>, <literal>enable_seqscan = off</>,
<literal>enable_tidscan=off</> <literal>enable_tidscan = off</>
</entry> </entry>
</row> </row>
...@@ -3071,9 +3103,9 @@ $ <userinput>postmaster -o '-S 1024 -s'</userinput> ...@@ -3071,9 +3103,9 @@ $ <userinput>postmaster -o '-S 1024 -s'</userinput>
<row> <row>
<entry><option>-tpa</option>, <option>-tpl</option>, <option>-te</option><footnoteref linkend="fn.runtime-config-short"></entry> <entry><option>-tpa</option>, <option>-tpl</option>, <option>-te</option><footnoteref linkend="fn.runtime-config-short"></entry>
<entry><literal>log_parser_stats=on</>, <entry><literal>log_parser_stats = on</>,
<literal>log_planner_stats=on</>, <literal>log_planner_stats = on</>,
<literal>log_executor_stats=on</></entry> <literal>log_executor_stats = on</></entry>
</row> </row>
</tbody> </tbody>
</tgroup> </tgroup>
...@@ -3154,7 +3186,8 @@ $ <userinput>postmaster -o '-S 1024 -s'</userinput> ...@@ -3154,7 +3186,8 @@ $ <userinput>postmaster -o '-S 1024 -s'</userinput>
<row> <row>
<entry><varname>SHMMAX</></> <entry><varname>SHMMAX</></>
<entry>Maximum size of shared memory segment (bytes)</> <entry>Maximum size of shared memory segment (bytes)</>
<entry>250 kB + 8.2 kB * <varname>shared_buffers</> + 14.2 kB * <varname>max_connections</> up to infinity</entry> <entry>250 kB + 8.2 kB * <xref linkend="guc-shared-buffers"> +
14.2 kB * <xref linkend="guc-max-connections"> up to infinity</entry>
</row> </row>
<row> <row>
...@@ -3641,9 +3674,9 @@ default:\ ...@@ -3641,9 +3674,9 @@ default:\
On the other side of the coin, some systems allow individual On the other side of the coin, some systems allow individual
processes to open large numbers of files; if more than a few processes to open large numbers of files; if more than a few
processes do so then the system-wide limit can easily be exceeded. processes do so then the system-wide limit can easily be exceeded.
If you find this happening, and you do not want to alter the system-wide If you find this happening, and you do not want to alter the
limit, you can set <productname>PostgreSQL</productname>'s system-wide limit, you can set <productname>PostgreSQL</>'s <xref
<varname>max_files_per_process</varname> configuration parameter to linkend="guc-max-files-per-process"> configuration parameter to
limit the consumption of open files. limit the consumption of open files.
</para> </para>
</sect2> </sect2>
...@@ -3814,7 +3847,7 @@ $ <userinput>kill -INT `head -1 /usr/local/pgsql/data/postmaster.pid`</userinput ...@@ -3814,7 +3847,7 @@ $ <userinput>kill -INT `head -1 /usr/local/pgsql/data/postmaster.pid`</userinput
With <acronym>SSL</> support compiled in, the With <acronym>SSL</> support compiled in, the
<productname>PostgreSQL</> server can be started with <productname>PostgreSQL</> server can be started with
<acronym>SSL</> enabled by setting the parameter <acronym>SSL</> enabled by setting the parameter
<varname>ssl</varname> to on in <filename>postgresql.conf</>. When <xref linkend="guc-ssl"> to on in <filename>postgresql.conf</>. When
starting in <acronym>SSL</> mode, the server will look for the starting in <acronym>SSL</> mode, the server will look for the
files <filename>server.key</> and <filename>server.crt</> in the files <filename>server.key</> and <filename>server.crt</> in the
data directory, which should contain the server private key data directory, which should contain the server private key
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.27 2004/01/06 17:26:23 neilc Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.28 2004/03/09 16:57:47 neilc Exp $ -->
<chapter id="wal"> <chapter id="wal">
<title>Write-Ahead Logging (<acronym>WAL</acronym>)</title> <title>Write-Ahead Logging (<acronym>WAL</acronym>)</title>
...@@ -162,10 +162,10 @@ ...@@ -162,10 +162,10 @@
</para> </para>
<para> <para>
The server spawns a special process every so often The server spawns a special process every so often to create the
to create the next checkpoint. A checkpoint is created every next checkpoint. A checkpoint is created every <xref
<varname>checkpoint_segments</varname> log segments, or every linkend="guc-checkpoint-segments"> log segments, or every <xref
<varname>checkpoint_timeout</varname> seconds, whichever comes first. linkend="guc-checkpoint-timeout"> seconds, whichever comes first.
The default settings are 3 segments and 300 seconds respectively. The default settings are 3 segments and 300 seconds respectively.
It is also possible to force a checkpoint by using the SQL command It is also possible to force a checkpoint by using the SQL command
<command>CHECKPOINT</command>. <command>CHECKPOINT</command>.
...@@ -204,11 +204,11 @@ ...@@ -204,11 +204,11 @@
space for the new record, <function>LogInsert</function> will have space for the new record, <function>LogInsert</function> will have
to write (move to kernel cache) a few filled <acronym>WAL</acronym> to write (move to kernel cache) a few filled <acronym>WAL</acronym>
buffers. This is undesirable because <function>LogInsert</function> buffers. This is undesirable because <function>LogInsert</function>
is used on every database low level modification (for example, is used on every database low level modification (for example, row
row insertion) at a time when an exclusive lock is held on insertion) at a time when an exclusive lock is held on affected
affected data pages, so the operation needs to be as fast as data pages, so the operation needs to be as fast as possible. What
possible. What is worse, writing <acronym>WAL</acronym> buffers may is worse, writing <acronym>WAL</acronym> buffers may also force the
also force the creation of a new log segment, which takes even more creation of a new log segment, which takes even more
time. Normally, <acronym>WAL</acronym> buffers should be written time. Normally, <acronym>WAL</acronym> buffers should be written
and flushed by a <function>LogFlush</function> request, which is and flushed by a <function>LogFlush</function> request, which is
made, for the most part, at transaction commit time to ensure that made, for the most part, at transaction commit time to ensure that
...@@ -217,9 +217,9 @@ ...@@ -217,9 +217,9 @@
not occur often enough to prevent <acronym>WAL</acronym> buffers not occur often enough to prevent <acronym>WAL</acronym> buffers
being written by <function>LogInsert</function>. On such systems being written by <function>LogInsert</function>. On such systems
one should increase the number of <acronym>WAL</acronym> buffers by one should increase the number of <acronym>WAL</acronym> buffers by
modifying the configuration parameter <varname>wal_buffers</varname>. modifying the configuration parameter <xref
The default number of <acronym> linkend="guc-wal-buffers">. The default number of <acronym>
WAL</acronym> buffers is 8. Increasing this value will WAL</acronym> buffers is 8. Increasing this value will
correspondingly increase shared memory usage. correspondingly increase shared memory usage.
</para> </para>
...@@ -228,20 +228,20 @@ ...@@ -228,20 +228,20 @@
buffers to disk using the operating system <literal>sync()</> call. buffers to disk using the operating system <literal>sync()</> call.
Busy servers may fill checkpoint segment files too quickly, Busy servers may fill checkpoint segment files too quickly,
causing excessive checkpointing. If such forced checkpoints happen causing excessive checkpointing. If such forced checkpoints happen
more frequently than <varname>checkpoint_warning</varname> seconds, more frequently than <xref linkend="guc-checkpoint-warning"> seconds,
a message, will be output to the server logs recommending increasing a message, will be output to the server logs recommending increasing
<varname>checkpoint_segments</varname>. <varname>checkpoint_segments</varname>.
</para> </para>
<para> <para>
The <varname>commit_delay</varname> parameter defines for how many The <xref linkend="guc-commit-delay"> parameter defines for how many
microseconds the server process will sleep after writing a commit microseconds the server process will sleep after writing a commit
record to the log with <function>LogInsert</function> but before record to the log with <function>LogInsert</function> but before
performing a <function>LogFlush</function>. This delay allows other performing a <function>LogFlush</function>. This delay allows other
server processes to add their commit records to the log so as to have all server processes to add their commit records to the log so as to have all
of them flushed with a single log sync. No sleep will occur if of them flushed with a single log sync. No sleep will occur if
<varname>fsync</varname> <xref linkend="guc-fsync">
is not enabled, nor if fewer than <varname>commit_siblings</varname> is not enabled, nor if fewer than <xref linkend="guc-commit-siblings">
other sessions are currently in active transactions; this avoids other sessions are currently in active transactions; this avoids
sleeping when it's unlikely that any other session will commit soon. sleeping when it's unlikely that any other session will commit soon.
Note that on most platforms, the resolution of a sleep request is Note that on most platforms, the resolution of a sleep request is
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</para> </para>
<para> <para>
The <varname>wal_sync_method</varname> parameter determines how The <xref linkend="guc-wal-sync-method"> parameter determines how
<productname>PostgreSQL</productname> will ask the kernel to force <productname>PostgreSQL</productname> will ask the kernel to force
<acronym>WAL</acronym> updates out to disk. <acronym>WAL</acronym> updates out to disk.
All the options should be the same as far as reliability goes, All the options should be the same as far as reliability goes,
...@@ -262,11 +262,12 @@ ...@@ -262,11 +262,12 @@
</para> </para>
<para> <para>
Enabling the <varname>wal_debug</varname> configuration parameter Enabling the <xref linkend="guc-wal-debug"> configuration parameter
will result in each <function>LogInsert</function> and (provided that <productname>PostgreSQL</productname> has been
<function>LogFlush</function> <acronym>WAL</acronym> call being compiled with support for it) will result in each
logged to the server log. This option may be replaced by a more <function>LogInsert</function> and <function>LogFlush</function>
general mechanism in the future. <acronym>WAL</acronym> call being logged to the server log. This
option may be replaced by a more general mechanism in the future.
</para> </para>
</sect1> </sect1>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.79 2003/11/29 19:51:38 pgsql Exp $ $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.80 2004/03/09 16:57:47 neilc Exp $
--> -->
<sect1 id="xfunc"> <sect1 id="xfunc">
...@@ -738,7 +738,7 @@ CREATE FUNCTION square_root(double precision) RETURNS double precision ...@@ -738,7 +738,7 @@ CREATE FUNCTION square_root(double precision) RETURNS double precision
<para> <para>
If the name does not contain a directory part, the file is If the name does not contain a directory part, the file is
searched for in the path specified by the configuration variable searched for in the path specified by the configuration variable
<varname>dynamic_library_path</varname>.<indexterm><primary>dynamic_library_path</></> <xref linkend="guc-dynamic-library-path">.<indexterm><primary>dynamic_library_path</></>
</para> </para>
</listitem> </listitem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment