changeset 779:6ae96abcc97a

revert to libpq 13.1 since 13.23 requires patching for VS2008 + 2015
author Alain Mazy <am@orthanc.team>
date Mon, 01 Dec 2025 11:37:38 +0100
parents 470c5b5c196f
children 904bec8020fa
files PostgreSQL/NEWS PostgreSQL/UnitTests/UnitTestsMain.cpp Resources/CMake/PostgreSQLConfiguration.cmake
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/PostgreSQL/NEWS	Sat Nov 29 16:09:41 2025 +0100
+++ b/PostgreSQL/NEWS	Mon Dec 01 11:37:38 2025 +0100
@@ -31,8 +31,6 @@
 * 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)
--- a/PostgreSQL/UnitTests/UnitTestsMain.cpp	Sat Nov 29 16:09:41 2025 +0100
+++ b/PostgreSQL/UnitTests/UnitTestsMain.cpp	Mon Dec 01 11:37:38 2025 +0100
@@ -38,7 +38,7 @@
 
 TEST(PostgreSQL, Version)
 {
-  ASSERT_STREQ("18.1", PG_VERSION);
+  ASSERT_STREQ("13.1", PG_VERSION);
 }
 #endif
 
--- a/Resources/CMake/PostgreSQLConfiguration.cmake	Sat Nov 29 16:09:41 2025 +0100
+++ b/Resources/CMake/PostgreSQLConfiguration.cmake	Mon Dec 01 11:37:38 2025 +0100
@@ -49,8 +49,12 @@
   add_definitions(-DORTHANC_POSTGRESQL_STATIC=1)
 
   SET(LIBPQ_MAJOR 13)
-  SET(LIBPQ_MINOR 23)
-  SET(LIBPQ_MD5SUM 86f7b1ace0dc43e993f29a6739a264d8)
+  SET(LIBPQ_MINOR 1)
+  SET(LIBPQ_MD5SUM 551302a823a1ab48b4ed14166beebba9)
+  # disabled 13.23: it fails building with VS2008, VS2015
+  # SET(LIBPQ_MAJOR 13)
+  # SET(LIBPQ_MINOR 23)
+  # SET(LIBPQ_MD5SUM 86f7b1ace0dc43e993f29a6739a264d8)
   # disabled 18.1: it only builds on ubuntu but fails with VS2008, VS2015 and LSB
   # SET(LIBPQ_MAJOR 18)
   # SET(LIBPQ_MINOR 1)