Don't actively violate the system limit of maximum open files (RLIMIT_NOFILE).
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 4 Mar 2009 09:12:49 +0000 (09:12 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 4 Mar 2009 09:12:49 +0000 (09:12 +0000)
commite0dd110ed2531ff2e69546804a03de4df9f5e37a
treea54fcf12db3b8c8740d2db6008fb21f892a6b811
parent825db7e146303b9a7d26d07ce160790ba6376dc4
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
src/backend/storage/file/fd.c