1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-22 02:52:08 +03:00

Augment WAL records for btree delete with GetOldestXmin() to reduce

false positives during Hot Standby conflict processing. Simple
patch to enhance conflict processing, following previous discussions.
Controlled by parameter minimize_standby_conflicts = on | off, with
default off allows measurement of performance impact to see whether
it should be set on all the time.
This commit is contained in:
Simon Riggs
2010-01-29 18:39:05 +00:00
parent d0cfc01823
commit 6d2bc0a6cf
6 changed files with 48 additions and 12 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.246 2010/01/26 16:33:40 tgl Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.247 2010/01/29 18:39:05 sriggs Exp $ -->
<chapter Id="runtime-config">
<title>Server Configuration</title>
@ -1840,6 +1840,22 @@ archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
</listitem>
</varlistentry>
<varlistentry id="minimize-standby-conflicts" xreflabel="minimize_standby_conflicts">
<term><varname>minimize_standby_conflicts</varname> (<type>boolean</type>)</term>
<indexterm>
<primary><varname>minimize_standby_conflicts</> configuration parameter</primary>
</indexterm>
<listitem>
<para>
Generates additional information to the transaction log (WAL) to minimize
the number of false positive cancelations caused by recovery conflicts on
a standby server that consumes WAL data from this server.
There is additional performance cost to enabling this parameter.
Parameter has no effect during recovery, only in normal running.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>