Skip site navigation (1) Skip section navigation (2)

Patch for not going beyond NOFILE system limit (updated)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Patch for not going beyond NOFILE system limit (updated)
Date: 2009-02-27 12:50:49
Message-ID: 49A7E1A9.6050405@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
This is an updated and properly autoconf-guarded patch for this 
previously reported issue:

"""
Jacek Drobiecki recently sent me a patch which stops postgresql to
actively violate the system limit of maximum open files
(RLIMIT_NOFILE) in src/backend/storage/file/fd.c, function
count_usable_fds().

This avoids irritating kernel logs (if system overstep violations are
enabled) and also the grsecurity alert when starting PostgreSQL.
"""

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

I think we can put this into 8.4 or the first commit fest of 8.5.

Attachment: check-rlimits-nofile.patch
Description: text/x-diff (1.5 KB)

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2009-02-27 14:19:04
Subject: Re: Hot Standby - >8.5
Previous:From: Heikki LinnakangasDate: 2009-02-27 12:19:26
Subject: Re: Immediate shutdown and system(3)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group