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/5995~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/5995
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Aug 31, 2025

  1. Fix EXEC_BACKEND segfault on NamedLWLockTrancheRequestArray access

    Unlike fork(), EXEC_BACKEND did not pass NamedLWLockTrancheRequestArray
    down to backends. This caused crashes if backends accessed the array,
    such as in GetNamedLWLockTranche.
    
    This patch fixes the issue by adding a num_lwlocks field to the shared
    memory NamedLWLockTrancheArray, with the postmaster copying the value
    from NamedLWLockTrancheRequestArray. GetNamedLWLockTranche now looks up
    the LWLock from NamedLWLockTrancheArray instead.
    
    NamedLWLockTrancheArray already points to shared memory and is passed
    down to backends in launch_backend.c. NamedLWLockTrancheRequests still
    acts as the counter for both arrays and is already handled in
    EXEC_BACKEND, so no further changes are needed there.
    
    This issue was discovered during testing of nearby code. No reports have
    been seen in the field, so backpatching is not required.
    Ubuntu authored and Commitfest Bot committed Aug 31, 2025
    Configuration menu
    Copy the full SHA
    194c90f View commit details
    Browse the repository at this point in the history
  2. [CF 5995] GetNamedLWLockTranche crashes on Windows in normal backend

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5995
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/CAA5RZ0tUApqNpYbRq9dtWZZyWd8FhJxxjOLbU8yso=opJMuHtQ@mail.gmail.com
    Author(s): Sami Imseih
    Commitfest Bot committed Aug 31, 2025
    Configuration menu
    Copy the full SHA
    5f23105 View commit details
    Browse the repository at this point in the history
Loading