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

Commits on Dec 26, 2025

  1. Add support for building with MSVC for AArch64.

    This commit does the following to get tests passing for
    MSVC/AArch64:
    
    * Implements spin_delay() with an ISB instruction (like we do for
    gcc/clang on AArch64).
    
    * Sets USE_ARMV8_CRC32C unconditionally.  Vendor-supported versions
    of Windows for AArch64 require at least ARMv8.1, which is where CRC
    extension support became mandatory.
    
    * Implements S_UNLOCK() with _InterlockedExchange().  The existing
    implementation for MSVC uses _ReadWriteBarrier() (a compiler
    barrier), which is insufficient for this purpose on non-TSO
    architectures.
    
    There are likely other changes required to take full advantage of
    the hardware (e.g., atomics/arch-arm.h, simd.h,
    pg_popcount_aarch64.c), but those can be dealt with later.
    
    Author: Niyas Sait <niyas.sait@linaro.org>
    Co-authored-by: Greg Burd <greg@burd.me>
    Co-authored-by: Dave Cramer <davecramer@gmail.com>
    Reviewed-by: Michael Paquier <michael@paquier.xyz>
    Reviewed-by: John Naylor <johncnaylorls@gmail.com>
    Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
    Reviewed-by: Andres Freund <andres@anarazel.de>
    Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
    Tested-by: Andrew Dunstan <andrew@dunslane.net>
    Discussion: https://postgr.es/m/A6152C7C-F5E3-4958-8F8E-7692D259FF2F%40greg.burd.me
    Discussion: https://postgr.es/m/CAFPTBD-74%2BAEuN9n7caJ0YUnW5A0r-KBX8rYoEJWqFPgLKpzdg%40mail.gmail.com
    3 people authored and Commitfest Bot committed Dec 26, 2025
    Configuration menu
    Copy the full SHA
    4a58507 View commit details
    Browse the repository at this point in the history
  2. [CF 6243] v13 - Fix ARM64/MSVC atomic memory ordering issues on Win11…

    … by adding explicit DMB ​barriers
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/6243
    
    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/aUHR3eSjkaBjaUAB@nathan
    Author(s): Dave Cramer, Greg Burd
    Commitfest Bot committed Dec 26, 2025
    Configuration menu
    Copy the full SHA
    7de23d1 View commit details
    Browse the repository at this point in the history
Loading