aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/guc.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2010-01-29 18:39:05 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2010-01-29 18:39:05 +0000
commit6d2bc0a6cf5c8d9a3241a0d7afaf5ca8bf1f11ec (patch)
treea99f7e3490d28b3546b909796ad76c8b6322cf72 /src/backend/utils/misc/guc.c
parentd0cfc018233b4cdcab28d460ee0e14dbf87ac4ce (diff)
downloadpostgresql-6d2bc0a6cf5c8d9a3241a0d7afaf5ca8bf1f11ec.tar.gz
postgresql-6d2bc0a6cf5c8d9a3241a0d7afaf5ca8bf1f11ec.zip
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.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r--src/backend/utils/misc/guc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 00ea55d5979..adf9f72b359 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.536 2010/01/26 16:33:40 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.537 2010/01/29 18:39:05 sriggs Exp $
*
*--------------------------------------------------------------------
*/
@@ -1223,6 +1223,17 @@ static struct config_bool ConfigureNamesBool[] =
},
{
+ {"minimize_standby_conflicts", PGC_POSTMASTER, WAL_SETTINGS,
+ gettext_noop("Additional information is added to WAL records to"
+ " minimize the number of false positive cancelations"
+ " caused by recovery conflicts on WAL standby nodes."),
+ NULL
+ },
+ &MinimizeStandbyConflicts,
+ false, NULL, NULL
+ },
+
+ {
{"allow_system_table_mods", PGC_POSTMASTER, DEVELOPER_OPTIONS,
gettext_noop("Allows modifications of the structure of system tables."),
NULL,