From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Fri, 6 Aug 2010 14:51:33 +0000 (+0000)
Subject: Add a comment about the initial default value of max_stack_depth.
X-Git-Tag: REL9_1_ALPHA1~119
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f73b765182b3ecb3bd3f14a9022e27c01b16cd21;p=postgresql

Add a comment about the initial default value of max_stack_depth.
---

diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 463b563b4b..97ed5b7247 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.565 2010/07/22 01:22:33 rhaas Exp $
+ *	  $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.566 2010/08/06 14:51:33 tgl Exp $
  *
  *--------------------------------------------------------------------
  */
@@ -1520,6 +1520,11 @@ static struct config_int ConfigureNamesInt[] =
 		16384, 1024, MAX_KILOBYTES, NULL, NULL
 	},
 
+	/*
+	 * We use the hopefully-safely-small value of 100kB as the compiled-in
+	 * default for max_stack_depth.  InitializeGUCOptions will increase it if
+	 * possible, depending on the actual platform-specific stack limit.
+	 */
 	{
 		{"max_stack_depth", PGC_SUSET, RESOURCES_MEM,
 			gettext_noop("Sets the maximum stack depth, in kilobytes."),