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/4881~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/4881
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 8, 2025

  1. bufmgr: Fix signedness of mask variable in BufferSync()

    BM_PERMANENT is defined as 1U<<31, which is a negative number when interpreted
    as a signed integer. Unfortunately the mask variable in BufferSync() was
    signed. This has been wrong for a long time, but failed to fail, due to
    integer conversion rules.
    
    However, in an upcoming patch the width of the state variable will be
    increased, with the wrong signedness leading to never flushing permanent
    buffers - luckily caught in a test.
    
    It seems better to fix this separately, instead of doing so as part of a
    large, otherwise mechanical, patch.
    
    Reviewed-by: Matthias van de Meent <[email protected]>
    Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff
    anarazel committed Oct 8, 2025
    Configuration menu
    Copy the full SHA
    2a2e1b4 View commit details
    Browse the repository at this point in the history
Loading