Don't actively violate the system limit of maximum open files (RLIMIT_NOFILE).

Peter Eisentraut <peter_e@gmx.net>

Commit: 9add9f95c334f68769e17b6814abe0b781d83082
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2009-03-04T09:12:49Z
Releases: 8.4.0
Don't actively violate the system limit of maximum open files (RLIMIT_NOFILE).
This avoids irritating kernel logs (if system overstep violations are enabled)
and also the grsecurity alert when starting PostgreSQL.

original patch by Jacek Drobiecki

References:
http://archives.postgresql.org/pgsql-bugs/2004-05/msg00103.php
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=248967

Files

PathChange+/−
src/backend/storage/file/fd.c modified +24 −1