mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +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:
@ -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 $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -1222,6 +1222,17 @@ static struct config_bool ConfigureNamesBool[] =
|
||||
true, NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
{"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."),
|
||||
|
Reference in New Issue
Block a user