[SCM] PostGIS branch master updated. 3.6.0rc2-70-g45af77d62

git at osgeo.org git at osgeo.org
Wed Oct 1 15:26:37 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, master has been updated
       via  45af77d62d20b37bc4ed47c75896013888082941 (commit)
      from  34ee8312cdb01171ceb2895d0c4f6124f3e63913 (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 45af77d62d20b37bc4ed47c75896013888082941
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Oct 1 14:56:19 2025 -0700

    Support pg19 change in VARATT_IS_* macros

diff --git a/libpgcommon/lwgeom_pg.h b/libpgcommon/lwgeom_pg.h
index 102d84f35..6474de8c4 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