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

Patch for not going beyond NOFILE system limit

From: Martin Pitt <martin(at)piware(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Patch for not going beyond NOFILE system limit
Date: 2004-05-17 12:24:30
Message-ID: 20040517122429.GA2909@donald.intranet.fbn-dd.de (view raw or flat)
Thread:
Lists: 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(at)piware(dot)de                      mpitt(at)debian(dot)org
http://www.piware.de             http://www.debian.org

Responses

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2004-05-17 12:37:52
Subject: Re: Fwd: Bug#249036: postgresql: zero bytes cannot be entered
Previous:From: Martin PittDate: 2004-05-17 12:08:22
Subject: Fwd: Bug#249036: postgresql: zero bytes cannot be entered in string literal, not even with \000 notation

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