Re: [HACKERS] postgresql 7.1 file descriptor - Mailing list pgsql-sql

From Tom Lane
Subject Re: [HACKERS] postgresql 7.1 file descriptor
Date
Msg-id 2952.1020875506@sss.pgh.pa.us
Whole thread Raw
In response to postgresql 7.1 file descriptor  (jade <jade@vanzoest.com>)
Responses Re: [HACKERS] postgresql 7.1 file descriptor  (jade <jade@vanzoest.com>)
List pgsql-sql
jade <jade@vanzoest.com> writes:
> I am running postgresql - 7.1 on Redhat 2.2.16-22 kernel.
> Sometimes this the system becomes totally unusable with
> "VFS: file-max limit 4096 reached" error?  The system is setup to have
> 4096 file descriptor as default.  I was wondering how many file descriptor
> does postgres open per backend process?

Potentially lots.  Increase your system's NFILE limit, or reduce the max
number of backends you will allow PG to start, or update to 7.2 which
will let you set a per-backend file limit (see MAX_FILES_PER_PROCESS;
AFAIR that parameter did not exist in 7.1).
        regards, tom lane


pgsql-sql by date:

Previous
From: Jean-Luc Lachance
Date:
Subject: Performance on update from join
Next
From: Charles Hauser
Date:
Subject: CURSOR/FETCH vs LIMIT/OFFSET