Joe Lester <joe_lester@sweetwater.com> writes:
> Would this be kern.maxfiles?
Sounds like what you want. There's probably no need to reduce
maxfilesperproc (and thereby constrain every process not only PG
backends). You can set PG's max_files_per_process instead.
> Is it OK to set these before starting the server? Or should I set them
> in /etc/rc?
Damifino. Try a manual sysctl -w and see if it takes ... if not, you
probably have to set it in /etc/rc.
regards, tom lane