[SCM] PostGIS branch master updated. 3.6.0rc2-288-gc460d6928

git at osgeo.org git at osgeo.org
Fri Jan 16 14:52:24 PST 2026


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  c460d6928c131cc0ae973200afacfa8c47cc4953 (commit)
      from  1c0c04fb517bbf910f465ed91688a82fc31fd9de (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c460d6928c131cc0ae973200afacfa8c47cc4953
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Jan 16 14:51:16 2026 -0800

    Add use of PG_MODULE_MAGIC_EXT for pg>=18
    
    Allows server to poll the version and extension name from the
    dynamically loaded library. Potentially could perform the
    same scripts-vs-libs version check we do, but on all
    extensions. Automatic update, could we have?
    
    Closes #6036

diff --git a/extensions/address_standardizer/address_standardizer.c b/extensions/address_standardizer/address_standardizer.c
index 9c2c99cdc..f4170b4a7 100644
--- a/extensions/address_standardizer/address_standardizer.c
+++ b/extensions/address_standardizer/address_standardizer.c
@@ -14,8 +14,13 @@
 #include "std_pg_hash.h"
 #include "parseaddress-api.h"
 
-#ifdef PG_MODULE_MAGIC
-PG_MODULE_MAGIC;
+#include "../../postgis_config.h"
+
+#ifdef PG_MODULE_MAGIC_EXT
+PG_MODULE_MAGIC_EXT(
+	.name = "address_standardizer",
+	.version = POSTGIS_LIB_VERSION
+	);
 #endif
 
 Datum debug_standardize_address(PG_FUNCTION_ARGS);
diff --git a/postgis/postgis_module.c b/postgis/postgis_module.c
index 8f7bb312e..8c420ac53 100644
--- a/postgis/postgis_module.c
+++ b/postgis/postgis_module.c
@@ -43,7 +43,14 @@
 /*
  * This is required for builds against pgsql
  */
+#ifdef PG_MODULE_MAGIC_EXT
+PG_MODULE_MAGIC_EXT(
+	.name = "postgis",
+	.version = POSTGIS_LIB_VERSION
+	);
+#else
 PG_MODULE_MAGIC;
+#endif
 
 
 static void interrupt_geos_callback()
diff --git a/raster/rt_pg/rtpostgis.c b/raster/rt_pg/rtpostgis.c
index 228717f36..49089b70e 100644
--- a/raster/rt_pg/rtpostgis.c
+++ b/raster/rt_pg/rtpostgis.c
@@ -157,7 +157,14 @@
 /*
  * This is required for builds against pgsql
  */
+#ifdef PG_MODULE_MAGIC_EXT
+PG_MODULE_MAGIC_EXT(
+	.name = "postgis_raster",
+	.version = POSTGIS_LIB_VERSION
+	);
+#else
 PG_MODULE_MAGIC;
+#endif
 
 /* Module load callback */
 void _PG_init(void);
diff --git a/sfcgal/lwgeom_sfcgal.c b/sfcgal/lwgeom_sfcgal.c
index cec862018..083ba081a 100644
--- a/sfcgal/lwgeom_sfcgal.c
+++ b/sfcgal/lwgeom_sfcgal.c
@@ -39,7 +39,15 @@
 /*
  * This is required for builds against pgsql
  */
+#ifdef PG_MODULE_MAGIC_EXT
+PG_MODULE_MAGIC_EXT(
+	.name = "postgis_sfcgal",
+	.version = POSTGIS_LIB_VERSION
+	);
+#else
 PG_MODULE_MAGIC;
+#endif
+
 
 /* Prototypes */
 #if POSTGIS_SFCGAL_VERSION >= 10400
diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c
index ad2b6d918..f6bd71a5c 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -50,7 +50,14 @@
 /*
  * This is required for builds against pgsql
  */
+#ifdef PG_MODULE_MAGIC_EXT
+PG_MODULE_MAGIC_EXT(
+  .name = "postgis_topology",
+  .version = POSTGIS_LIB_VERSION
+  );
+#else
 PG_MODULE_MAGIC;
+#endif
 
 static LWT_BE_IFACE* be_iface;
 

-----------------------------------------------------------------------

Summary of changes:
 extensions/address_standardizer/address_standardizer.c | 9 +++++++--
 postgis/postgis_module.c                               | 7 +++++++
 raster/rt_pg/rtpostgis.c                               | 7 +++++++
 sfcgal/lwgeom_sfcgal.c                                 | 8 ++++++++
 topology/postgis_topology.c                            | 7 +++++++
 5 files changed, 36 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list