mirror of
https://github.com/postgres/postgres.git
synced 2025-07-20 05:03:10 +03:00
Make vacuum_defer_cleanup_age be PGC_SIGHUP level, since it's not sensible
to have different values in different processes of the primary server. Also put it into the "Streaming Replication" GUC category; it doesn't belong in "Standby Servers" because you use it on the master not the standby. In passing also correct guc.c's idea of wal_keep_segments' category.
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.558 2010/07/03 20:43:58 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.559 2010/07/03 21:23:58 tgl Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -1631,8 +1631,8 @@ static struct config_int ConfigureNamesInt[] =
|
||||
},
|
||||
|
||||
{
|
||||
{"vacuum_defer_cleanup_age", PGC_USERSET, WAL_STANDBY_SERVERS,
|
||||
gettext_noop("Age by which VACUUM and HOT cleanup should be deferred, if any."),
|
||||
{"vacuum_defer_cleanup_age", PGC_SIGHUP, WAL_REPLICATION,
|
||||
gettext_noop("Number of transactions by which VACUUM and HOT cleanup should be deferred, if any."),
|
||||
NULL
|
||||
},
|
||||
&vacuum_defer_cleanup_age,
|
||||
@ -1675,7 +1675,7 @@ static struct config_int ConfigureNamesInt[] =
|
||||
},
|
||||
|
||||
{
|
||||
{"wal_keep_segments", PGC_SIGHUP, WAL_CHECKPOINTS,
|
||||
{"wal_keep_segments", PGC_SIGHUP, WAL_REPLICATION,
|
||||
gettext_noop("Sets the number of WAL files held for standby servers."),
|
||||
NULL
|
||||
},
|
||||
|
@ -188,6 +188,7 @@
|
||||
#max_wal_senders = 0 # max number of walsender processes
|
||||
#wal_sender_delay = 200ms # walsender cycle time, 1-10000 milliseconds
|
||||
#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
|
||||
#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
|
||||
|
||||
# - Standby Servers -
|
||||
|
||||
@ -198,7 +199,6 @@
|
||||
#max_standby_streaming_delay = 30s # max delay before canceling queries
|
||||
# when reading streaming WAL;
|
||||
# -1 allows indefinite delay
|
||||
#vacuum_defer_cleanup_age = 0 # number of transactions by which cleanup is deferred
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user