On platforms that have getrlimit(RLIMIT_STACK), use it to ensure that

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 71a6f8b85b9f748dc7f33c1212c4474e8beb901a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-10-07T19:25:29Z
Releases: 8.2.0
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 <sys/resource.h>,
and cleans up some perhaps-unportable code associated with use of that
include file and getrlimit().

Files

PathChange+/−
configure modified +4 −2
configure.in modified +3 −3
contrib/pgbench/pgbench.c modified +10 −9
doc/src/sgml/config.sgml modified +25 −17
src/backend/tcop/postgres.c modified +56 −15
src/backend/utils/misc/guc.c modified +25 −3
src/include/pg_config.h.in modified +6 −0
src/include/tcop/tcopprot.h modified +5 −1
src/include/utils/pg_rusage.h modified +2 −2