Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5591~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5591
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Mar 24, 2025

  1. Redefine max_files_per_process to control additionally opened files

    Until now max_files_per_process=N limited each backend to open N files in
    total (minus a safety factor), even if there were already more files opened in
    postmaster and inherited by backends.  Change max_files_per_process to control
    how many additional files each process is allowed to open.
    
    The main motivation for this is the patch to add io_method=io_uring, which
    needs to open one file for each backend.  Without this patch, even if
    RLIMIT_NOFILE is high enough, postmaster will fail in set_max_safe_fds() if
    started with a high max_connections.  The cause of the failure is that, until
    now, set_max_safe_fds() subtracted the already open files from
    max_files_per_process.
    
    Reviewed-by: Noah Misch <[email protected]>
    Discussion: https://postgr.es/m/w6uiicyou7hzq47mbyejubtcyb2rngkkf45fk4q7inue5kfbeo@bbfad3qyubvs
    Discussion: https://postgr.es/m/CAGECzQQh6VSy3KG4pN1d=h9J=D1rStFCMR+t7yh_Kwj-g87aLQ@mail.gmail.com
    anarazel committed Mar 24, 2025
    Configuration menu
    Copy the full SHA
    adb5f85 View commit details
    Browse the repository at this point in the history
Loading