[SCM] PostGIS branch stable-3.5 updated. 3.5.3-58-gfad381ea7

git at osgeo.org git at osgeo.org
Thu Oct 2 09:44:21 PDT 2025


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, stable-3.5 has been updated
       via  fad381ea7594ac2162ee82e6bcb58dd82e1cf6d0 (commit)
      from  686839214ba333ccd3f4eb816d9e9caeb79d93e2 (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 fad381ea7594ac2162ee82e6bcb58dd82e1cf6d0
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Oct 2 09:44:15 2025 -0700

    Pg19 build support

diff --git a/libpgcommon/lwgeom_pg.h b/libpgcommon/lwgeom_pg.h
index b05290bd2..e4b69f3a0 100644
--- a/libpgcommon/lwgeom_pg.h
+++ b/libpgcommon/lwgeom_pg.h
@@ -88,13 +88,23 @@ void pg_install_lwgeom_handlers(void);
 
 /* Argument handling macros */
 #define PG_GETARG_GSERIALIZED_P(varno) ((GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(varno)))
+
 #define PG_GETARG_GSERIALIZED_P_COPY(varno) ((GSERIALIZED *)PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(varno)))
+
 #define PG_GSERIALIZED_DATUM_NEEDS_DETOAST(datum) \
 	(VARATT_IS_EXTENDED((datum)) || VARATT_IS_EXTERNAL((datum)) || VARATT_IS_COMPRESSED((datum)))
+
+#if POSTGIS_PGSQL_VERSION >= 190
+#define PG_GETARG_GSERIALIZED_HEADER(varno) \
+	PG_GSERIALIZED_DATUM_NEEDS_DETOAST(DatumGetPointer(PG_GETARG_DATUM(varno))) \
+	? ((GSERIALIZED *)PG_DETOAST_DATUM_SLICE(PG_GETARG_DATUM(varno), 0, gserialized_max_header_size())) \
+	: ((GSERIALIZED *)(PG_GETARG_POINTER(varno)))
+#else
 #define PG_GETARG_GSERIALIZED_HEADER(varno) \
 	PG_GSERIALIZED_DATUM_NEEDS_DETOAST(PG_GETARG_DATUM(varno)) \
 	? ((GSERIALIZED *)PG_DETOAST_DATUM_SLICE(PG_GETARG_DATUM(varno), 0, gserialized_max_header_size())) \
 	: ((GSERIALIZED *)(PG_GETARG_DATUM(varno)))
+#endif
 
 /* Debugging macros */
 #if POSTGIS_DEBUG_LEVEL > 0

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

Summary of changes:
 libpgcommon/lwgeom_pg.h | 10 ++++++++++
 1 file changed, 10 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list