[SCM] PostGIS branch stable-3.6 updated. 3.6.0-10-gd3f3a8bf9
git at osgeo.org
git at osgeo.org
Thu Oct 2 08:56: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.6 has been updated
via d3f3a8bf9e23c32beb28a04c490930fd82cba95d (commit)
from b212d84b694c61e2efb86bb9f2e2c0367e74a81c (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 d3f3a8bf9e23c32beb28a04c490930fd82cba95d
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Oct 2 08:56:08 2025 -0700
Pg19 build support
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