Re: Bump soft open file limit (RLIMIT_NOFILE) to hard limit on startup

Jelte Fennema-Nio <postgres@jeltef.nl>

From: "Jelte Fennema-Nio" <postgres@jeltef.nl>
To: "Andres Freund" <andres@anarazel.de>
Cc: "Tom Lane" <tgl@sss.pgh.pa.us>, "Tomas Vondra" <tomas@vondra.me>, "PostgreSQL-development" <pgsql-hackers@postgresql.org>
Date: 2025-02-24T10:58:53Z
Lists: pgsql-hackers

Attachments

On Mon Feb 24, 2025 at 10:56 AM CET, Jelte Fennema-Nio wrote:
> Great! Attached are the updated other patches, I think I addressed all
> feedback.

Ughh, a compiler warning snuck on windows during some of my final
refactoring. Fixed now.

Commits

  1. Redefine max_files_per_process to control additionally opened files

  2. pgbench: Increase RLIMIT_NOFILE if necessary

  3. Move extra code out of the Pre/PostRestoreCommand() section.