|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.238 2009/12/17 14:36:16 rhaas Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.239 2009/12/19 01:32:31 sriggs Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter Id="runtime-config">
|
4 | 4 | <title>Server Configuration</title>
|
@@ -376,6 +376,12 @@ SET ENABLE_SEQSCAN TO OFF;
|
376 | 376 | allows. See <xref linkend="sysvipc"> for information on how to
|
377 | 377 | adjust those parameters, if necessary.
|
378 | 378 | </para>
|
| 379 | + |
| 380 | + <para> |
| 381 | + When running a standby server, you must set this parameter to the |
| 382 | + same or higher value than on the master server. Otherwise, queries |
| 383 | + will not be allowed in the standby server. |
| 384 | + </para> |
379 | 385 | </listitem>
|
380 | 386 | </varlistentry>
|
381 | 387 |
|
@@ -826,6 +832,12 @@ SET ENABLE_SEQSCAN TO OFF;
|
826 | 832 | allows. See <xref linkend="sysvipc"> for information on how to
|
827 | 833 | adjust those parameters, if necessary.
|
828 | 834 | </para>
|
| 835 | + |
| 836 | + <para> |
| 837 | + When running a standby server, you must set this parameter to the |
| 838 | + same or higher value than on the master server. Otherwise, queries |
| 839 | + will not be allowed in the standby server. |
| 840 | + </para> |
829 | 841 | </listitem>
|
830 | 842 | </varlistentry>
|
831 | 843 |
|
@@ -1733,6 +1745,51 @@ archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
|
1733 | 1745 |
|
1734 | 1746 | </variablelist>
|
1735 | 1747 | </sect2>
|
| 1748 | + |
| 1749 | + <sect2 id="runtime-config-standby"> |
| 1750 | + <title>Standby Servers</title> |
| 1751 | + |
| 1752 | + <variablelist> |
| 1753 | + |
| 1754 | + <varlistentry id="recovery-connections" xreflabel="recovery_connections"> |
| 1755 | + <term><varname>recovery_connections</varname> (<type>boolean</type>)</term> |
| 1756 | + <listitem> |
| 1757 | + <para> |
| 1758 | + Parameter has two roles. During recovery, specifies whether or not |
| 1759 | + you can connect and run queries to enable <xref linkend="hot-standby">. |
| 1760 | + During normal running, specifies whether additional information is written |
| 1761 | + to WAL to allow recovery connections on a standby server that reads |
| 1762 | + WAL data generated by this server. The default value is |
| 1763 | + <literal>on</literal>. It is thought that there is little |
| 1764 | + measurable difference in performance from using this feature, so |
| 1765 | + feedback is welcome if any production impacts are noticeable. |
| 1766 | + It is likely that this parameter will be removed in later releases. |
| 1767 | + This parameter can only be set at server start. |
| 1768 | + </para> |
| 1769 | + </listitem> |
| 1770 | + </varlistentry> |
| 1771 | + |
| 1772 | + <varlistentry id="max-standby-delay" xreflabel="max_standby_delay"> |
| 1773 | + <term><varname>max_standby_delay</varname> (<type>string</type>)</term> |
| 1774 | + <listitem> |
| 1775 | + <para> |
| 1776 | + When server acts as a standby, this parameter specifies a wait policy |
| 1777 | + for queries that conflict with incoming data changes. Valid settings |
| 1778 | + are -1, meaning wait forever, or a wait time of 0 or more seconds. |
| 1779 | + If a conflict should occur the server will delay up to this |
| 1780 | + amount before it begins trying to resolve things less amicably, as |
| 1781 | + described in <xref linkend="hot-standby-conflict">. Typically, |
| 1782 | + this parameter makes sense only during replication, so when |
| 1783 | + performing an archive recovery to recover from data loss a |
| 1784 | + parameter setting of 0 is recommended. The default is 30 seconds. |
| 1785 | + This parameter can only be set in the <filename>postgresql.conf</> |
| 1786 | + file or on the server command line. |
| 1787 | + </para> |
| 1788 | + </listitem> |
| 1789 | + </varlistentry> |
| 1790 | + |
| 1791 | + </variablelist> |
| 1792 | + </sect2> |
1736 | 1793 | </sect1>
|
1737 | 1794 |
|
1738 | 1795 | <sect1 id="runtime-config-query">
|
@@ -4161,6 +4218,29 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
4161 | 4218 | </listitem>
|
4162 | 4219 | </varlistentry>
|
4163 | 4220 |
|
| 4221 | + <varlistentry id="guc-vacuum-defer-cleanup-age" xreflabel="vacuum_defer_cleanup_age"> |
| 4222 | + <term><varname>vacuum_defer_cleanup_age</varname> (<type>integer</type>)</term> |
| 4223 | + <indexterm> |
| 4224 | + <primary><varname>vacuum_defer_cleanup_age</> configuration parameter</primary> |
| 4225 | + </indexterm> |
| 4226 | + <listitem> |
| 4227 | + <para> |
| 4228 | + Specifies the number of transactions by which <command>VACUUM</> and |
| 4229 | + <acronym>HOT</> updates will defer cleanup of dead row versions. The |
| 4230 | + default is 0 transactions, meaning that dead row versions will be |
| 4231 | + removed as soon as possible. You may wish to set this to a non-zero |
| 4232 | + value when planning or maintaining a <xref linkend="hot-standby"> |
| 4233 | + configuration. The recommended value is <literal>0</> unless you have |
| 4234 | + clear reason to increase it. The purpose of the parameter is to |
| 4235 | + allow the user to specify an approximate time delay before cleanup |
| 4236 | + occurs. However, it should be noted that there is no direct link with |
| 4237 | + any specific time delay and so the results will be application and |
| 4238 | + installation specific, as well as variable over time, depending upon |
| 4239 | + the transaction rate (of writes only). |
| 4240 | + </para> |
| 4241 | + </listitem> |
| 4242 | + </varlistentry> |
| 4243 | + |
4164 | 4244 | <varlistentry id="guc-bytea-output" xreflabel="bytea_output">
|
4165 | 4245 | <term><varname>bytea_output</varname> (<type>enum</type>)</term>
|
4166 | 4246 | <indexterm>
|
@@ -4689,6 +4769,12 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
|
4689 | 4769 | allows. See <xref linkend="sysvipc"> for information on how to
|
4690 | 4770 | adjust those parameters, if necessary.
|
4691 | 4771 | </para>
|
| 4772 | + |
| 4773 | + <para> |
| 4774 | + When running a standby server, you must set this parameter to the |
| 4775 | + same or higher value than on the master server. Otherwise, queries |
| 4776 | + will not be allowed in the standby server. |
| 4777 | + </para> |
4692 | 4778 | </listitem>
|
4693 | 4779 | </varlistentry>
|
4694 | 4780 |
|
@@ -5546,6 +5632,32 @@ plruby.use_strict = true # generates error: unknown class name
|
5546 | 5632 | </listitem>
|
5547 | 5633 | </varlistentry>
|
5548 | 5634 |
|
| 5635 | + <varlistentry id="guc-trace-recovery-messages" xreflabel="trace_recovery_messages"> |
| 5636 | + <term><varname>trace_recovery_messages</varname> (<type>string</type>)</term> |
| 5637 | + <indexterm> |
| 5638 | + <primary><varname>trace_recovery_messages</> configuration parameter</primary> |
| 5639 | + </indexterm> |
| 5640 | + <listitem> |
| 5641 | + <para> |
| 5642 | + Controls which message levels are written to the server log |
| 5643 | + for system modules needed for recovery processing. This allows |
| 5644 | + the user to override the normal setting of log_min_messages, |
| 5645 | + but only for specific messages. This is intended for use in |
| 5646 | + debugging Hot Standby. |
| 5647 | + Valid values are <literal>DEBUG5</>, <literal>DEBUG4</>, |
| 5648 | + <literal>DEBUG3</>, <literal>DEBUG2</>, <literal>DEBUG1</>, |
| 5649 | + <literal>INFO</>, <literal>NOTICE</>, <literal>WARNING</>, |
| 5650 | + <literal>ERROR</>, <literal>LOG</>, <literal>FATAL</>, and |
| 5651 | + <literal>PANIC</>. Each level includes all the levels that |
| 5652 | + follow it. The later the level, the fewer messages are sent |
| 5653 | + to the log. The default is <literal>WARNING</>. Note that |
| 5654 | + <literal>LOG</> has a different rank here than in |
| 5655 | + <varname>client_min_messages</>. |
| 5656 | + Parameter should be set in the postgresql.conf only. |
| 5657 | + </para> |
| 5658 | + </listitem> |
| 5659 | + </varlistentry> |
| 5660 | + |
5549 | 5661 | <varlistentry id="guc-zero-damaged-pages" xreflabel="zero_damaged_pages">
|
5550 | 5662 | <term><varname>zero_damaged_pages</varname> (<type>boolean</type>)</term>
|
5551 | 5663 | <indexterm>
|
|
0 commit comments