Skip to content

Commit f73b765

Browse files
committed
Add a comment about the initial default value of max_stack_depth.
1 parent 901c0ea commit f73b765

File tree

1 file changed

+6
-1
lines changed
  • src/backend/utils/misc

1 file changed

+6
-1
lines changed

src/backend/utils/misc/guc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.565 2010/07/22 01:22:33 rhaas Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.566 2010/08/06 14:51:33 tgl Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -1520,6 +1520,11 @@ static struct config_int ConfigureNamesInt[] =
15201520
16384, 1024, MAX_KILOBYTES, NULL, NULL
15211521
},
15221522

1523+
/*
1524+
* We use the hopefully-safely-small value of 100kB as the compiled-in
1525+
* default for max_stack_depth. InitializeGUCOptions will increase it if
1526+
* possible, depending on the actual platform-specific stack limit.
1527+
*/
15231528
{
15241529
{"max_stack_depth", PGC_SUSET, RESOURCES_MEM,
15251530
gettext_noop("Sets the maximum stack depth, in kilobytes."),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy