# HG changeset patch # User Alain Mazy # Date 1764428981 -3600 # Node ID 470c5b5c196f09c31adb9bced3b4b548c6d83fe9 # Parent 565c1cf76b2868942a4ede98c5d913446741f683 fix diff -r 565c1cf76b28 -r 470c5b5c196f PostgreSQL/NEWS --- a/PostgreSQL/NEWS Sat Nov 29 12:40:16 2025 +0100 +++ b/PostgreSQL/NEWS Sat Nov 29 16:09:41 2025 +0100 @@ -31,6 +31,8 @@ * Added a new primary key column in the InvalidChildCounts and GlobalIntegersChanges tables. This new column is required for pg_repack to be able to reclaim space on these tables. +* Upgraded dependencies for static builds (notably on Windows and LSB): + - libpq 13.23 (replacing libpq 13.1) Release 9.0 (2025-08-13) diff -r 565c1cf76b28 -r 470c5b5c196f Resources/CMake/PostgreSQLConfiguration.cmake --- a/Resources/CMake/PostgreSQLConfiguration.cmake Sat Nov 29 12:40:16 2025 +0100 +++ b/Resources/CMake/PostgreSQLConfiguration.cmake Sat Nov 29 16:09:41 2025 +0100 @@ -96,21 +96,22 @@ #endif ") - if (MSVC) - # Older versions of Microsoft Visual Studio (notably MSVC2008) - # don't have inttypes.h. - execute_process( - COMMAND ${PATCH_EXECUTABLE} -p0 -N -i - ${CMAKE_CURRENT_LIST_DIR}/../PostgreSQL/libpq-18.1-msvc.patch - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - RESULT_VARIABLE Failure - ) + if (LIBPQ_MAJOR STREQUAL "18") + if (MSVC) + # Older versions of Microsoft Visual Studio (notably MSVC2008) + # don't have inttypes.h. + execute_process( + COMMAND ${PATCH_EXECUTABLE} -p0 -N -i + ${CMAKE_CURRENT_LIST_DIR}/../PostgreSQL/libpq-18.1-msvc.patch + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + RESULT_VARIABLE Failure + ) - if (Failure) - message(FATAL_ERROR "Error while patching a file") + if (Failure) + message(FATAL_ERROR "Error while patching a file") + endif() + endif() endif() - endif() - endif()