postgresql_16:4.5.4.3 Kernel Resource Usage
PostgreSQL 16 > Server Administration > Server Configuration > Resource Consumption > Kernel Resource Usage
max_files_per_process (integer)
Sets the maximum number of simultaneously open files allowed to each server subprocess. The default is one thousand files. If the kernel is enforcing a safe per-process limit, you don't need to worry about this setting. But on some platforms (notably, most BSD systems), the kernel will allow individual processes to open many more files than the system can actually support if many processes all try to open that many files. If you find yourself seeing “Too many open files” failures, try reducing this setting. This parameter can only be set at server start.