aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2015-09-03 22:30:16 +0900
committerFujii Masao <fujii@postgresql.org>2015-09-03 22:30:58 +0900
commitcb9cc382b41de4fab2d718f0f8de3441c85aa7f7 (patch)
tree1b23da0ef0b1aae79f29bd79cef79b837eb550f9
parent8d60549d6d39fbc1501f11a31f007c36975891e8 (diff)
downloadpostgresql-cb9cc382b41de4fab2d718f0f8de3441c85aa7f7.tar.gz
postgresql-cb9cc382b41de4fab2d718f0f8de3441c85aa7f7.zip
Document that max_worker_processes must be high enough in standby.
The setting values of some parameters including max_worker_processes must be equal to or higher than the values on the master. However, previously max_worker_processes was not listed as such parameter in the document. So this commit adds it to that list. Back-patch to 9.4 where max_worker_processes was added.
-rw-r--r--doc/src/sgml/high-availability.sgml5
-rw-r--r--src/backend/access/transam/xlog.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/sgml/high-availability.sgml b/doc/src/sgml/high-availability.sgml
index d2f7fec5234..e4a50ba6549 100644
--- a/doc/src/sgml/high-availability.sgml
+++ b/doc/src/sgml/high-availability.sgml
@@ -2035,6 +2035,11 @@ LOG: database system is ready to accept read only connections
<varname>max_locks_per_transaction</>
</para>
</listitem>
+ <listitem>
+ <para>
+ <varname>max_worker_processes</>
+ </para>
+ </listitem>
</itemizedlist>
</para>
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 68e33eb1a99..127bc5888f3 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -5842,6 +5842,10 @@ do { \
/*
* Check to see if required parameters are set high enough on this server
* for various aspects of recovery operation.
+ *
+ * Note that all the parameters which this function tests need to be
+ * listed in Administrator's Overview section in high-availability.sgml.
+ * If you change them, don't forget to update the list.
*/
static void
CheckRequiredParameterValues(void)