aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2013-02-02 18:50:42 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2013-02-02 18:50:42 +0000
commit9dd99933708994bb307efcf214b11f6061bbe18f (patch)
tree559e3b1918526a821aa280f2dd34c27fb8958df7
parent231dbb3c9be755eebdf677b469f2dd4494e7937f (diff)
downloadpostgresql-9dd99933708994bb307efcf214b11f6061bbe18f.tar.gz
postgresql-9dd99933708994bb307efcf214b11f6061bbe18f.zip
Mark vacuum_defer_cleanup_age as PGC_POSTMASTER.
Following bug analysis of #7819 by Tom Lane
-rw-r--r--doc/src/sgml/config.sgml3
-rw-r--r--src/backend/utils/misc/guc.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index a3113081008..79e438ca01c 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -2288,8 +2288,7 @@ SET ENABLE_SEQSCAN TO OFF;
is measured in terms of number of write transactions occurring on the
primary server, it is difficult to predict just how much additional
grace time will be made available to standby queries.
- This parameter can only be set in the <filename>postgresql.conf</>
- file or on the server command line.
+ This parameter can only be set at server start.
</para>
<para>
You should also consider setting <varname>hot_standby_feedback</>
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index c37c1d9a5fb..25722fac68d 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -1880,7 +1880,12 @@ static struct config_int ConfigureNamesInt[] =
},
{
- {"vacuum_defer_cleanup_age", PGC_SIGHUP, REPLICATION_MASTER,
+ /*
+ * Setting this to a higher value without restarting postmaster
+ * can cause various bugs in TOAST object removal, CLUSTER and
+ * possibly other places, so this must be changed only on restart.
+ */
+ {"vacuum_defer_cleanup_age", PGC_POSTMASTER, REPLICATION_MASTER,
gettext_noop("Number of transactions by which VACUUM and HOT cleanup should be deferred, if any."),
NULL
},