Patch for not going beyond NOFILE system limit - Mailing list pgsql-bugs

From Martin Pitt
Subject Patch for not going beyond NOFILE system limit
Date
Msg-id 20040517122429.GA2909@donald.intranet.fbn-dd.de
Whole thread Raw
Responses Re: Patch for not going beyond NOFILE system limit
List pgsql-bugs
Hi PostgreSQL developers!

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.

Can you please adopt this patch?

Currently the modifications are only enabled when postgresql is
compiled with -DCHECK_RLIMIT_NOFILE. Of course you can also use it
unconditionally.

Thanks for considering and have a nice day!

Martin

--
Martin Pitt                 Debian GNU/Linux Developer
martin@piware.de                      mpitt@debian.org
http://www.piware.de             http://www.debian.org

Attachment

pgsql-bugs by date:

Previous
From: Martin Pitt
Date:
Subject: Fwd: Bug#249036: postgresql: zero bytes cannot be entered in string literal, not even with \000 notation
Next
From: Bruce Momjian
Date:
Subject: Re: Fwd: Bug#249036: postgresql: zero bytes cannot be entered