Re: How many file descriptors does postgres need? - Mailing list pgsql-general

From Tom Lane
Subject Re: How many file descriptors does postgres need?
Date
Msg-id 11530.1268150803@sss.pgh.pa.us
Whole thread Raw
In response to Re: How many file descriptors does postgres need?  (Steve Atkins <steve@blighty.com>)
List pgsql-general
Steve Atkins <steve@blighty.com> writes:
> Postgresql is supposed to cope with file descriptor limits quite happily, as long as the OS actually restricts the
numberof files a process can have open. If it doesn't restrict the number, just falls over if there's too many, there's
apostgresql configuration option to limit it (max_files_per_process, I think). 

Usually the problem is not that Postgres falls over, but that everything
else on the box starts to fall over once PG has run the kernel out of
file descriptors.  Make sure max_connections * max_files_per_process is
less than the kernel's file table size, with enough daylight for the
machine's other activities.

            regards, tom lane

pgsql-general by date:

Previous
From: John Gage
Date:
Subject: Re: Entering a character code in a query
Next
From: Dan Fitzpatrick
Date:
Subject: Update view/table rule order of operations or race condition