From 71a6f8b85b9f748dc7f33c1212c4474e8beb901a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 7 Oct 2006 19:25:29 +0000 Subject: On platforms that have getrlimit(RLIMIT_STACK), use it to ensure that max_stack_depth is not set to an unsafe value. This commit also provides configure-time checking for , and cleans up some perhaps-unportable code associated with use of that include file and getrlimit(). --- doc/src/sgml/config.sgml | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index b3223e3de43..549ca755d70 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -846,14 +846,22 @@ SET ENABLE_SEQSCAN TO OFF; equivalent), less a safety margin of a megabyte or so. The safety margin is needed because the stack depth is not checked in every routine in the server, but only in key potentially-recursive routines - such as expression evaluation. Setting the parameter higher than - the actual kernel limit will mean that a runaway recursive function - can crash an individual backend process. The default setting is + such as expression evaluation. The default setting is 2048 KB (two megabytes), which is conservatively small and unlikely to risk crashes. However, it may be too small to allow execution of complex functions. Only superusers can change this setting. + + + Setting max_stack_depth higher than + the actual kernel limit will mean that a runaway recursive function + can crash an individual backend process. On platforms where + PostgreSQL can determine the kernel limit, + it will not let you set this variable to an unsafe value. However, + not all platforms provide the information, so caution is recommended + in selecting a value. + @@ -2173,19 +2181,6 @@ SELECT * FROM parent WHERE key = 2400; - - gin_fuzzy_search_limit (integer) - - gin_fuzzy_search_limit configuration parameter - - - - Soft upper limit of the size of the set returned by GIN index. For more - information see . - - - - @@ -3718,6 +3713,19 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir' + + + gin_fuzzy_search_limit (integer) + + gin_fuzzy_search_limit configuration parameter + + + + Soft upper limit of the size of the set returned by GIN index. For more + information see . + + + local_preload_libraries (string) -- cgit v1.2.3