diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-07 19:25:29 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-07 19:25:29 +0000 |
commit | 71a6f8b85b9f748dc7f33c1212c4474e8beb901a (patch) | |
tree | d3ae369b5edb5b1c199f4cae9d1a637432c75b15 /src/include/utils/pg_rusage.h | |
parent | 1c160291ef61f46800616cb88d5a3a02156de4e3 (diff) | |
download | postgresql-71a6f8b85b9f748dc7f33c1212c4474e8beb901a.tar.gz postgresql-71a6f8b85b9f748dc7f33c1212c4474e8beb901a.zip |
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().
Diffstat (limited to 'src/include/utils/pg_rusage.h')
-rw-r--r-- | src/include/utils/pg_rusage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/pg_rusage.h b/src/include/utils/pg_rusage.h index 32e409076e1..bb11812da80 100644 --- a/src/include/utils/pg_rusage.h +++ b/src/include/utils/pg_rusage.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/pg_rusage.h,v 1.2 2006/03/05 15:59:07 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/pg_rusage.h,v 1.3 2006/10/07 19:25:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,7 +16,7 @@ #include <sys/time.h> -#ifdef HAVE_GETRUSAGE +#ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> #else #include "rusagestub.h" |