Don't actively violate the system limit of maximum open files (RLIMIT_NOFILE).
commit549b27e64e603375692920ac29aecb2e1910cb09
authorpetere <petere>
Wed, 4 Mar 2009 09:12:49 +0000 (4 09:12 +0000)
committerpetere <petere>
Wed, 4 Mar 2009 09:12:49 +0000 (4 09:12 +0000)
treeccef4bc0d63be9140bd834983a43e5cd925c8261
parent56ffa4002f2fc8f703a4e2d4ae5be4653cf4c1e2
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