[SCM] PostGIS branch master updated. 3.6.0rc2-160-g2de4990a6

git at osgeo.org git at osgeo.org
Sun Oct 26 08:21:28 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  2de4990a6879b6a935c7617bd57a1d98c4ec4110 (commit)
      from  fec3149657a8433d67df12708c5d3fc3bc584424 (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 2de4990a6879b6a935c7617bd57a1d98c4ec4110
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Sun Oct 26 19:21:02 2025 +0400

    Wrap hash in ifdef for PG<=13

diff --git a/postgis/lwgeom_out_geojson.c b/postgis/lwgeom_out_geojson.c
index 1454343e8..288b0c89c 100644
--- a/postgis/lwgeom_out_geojson.c
+++ b/postgis/lwgeom_out_geojson.c
@@ -173,7 +173,11 @@ composite_to_geojson(FunctionCallInfo fcinfo,
 	 * surfacing the issue here prevents silent information loss.
 	 */
 	prop_keys =
+#if POSTGIS_PGSQL_VERSION <= 130
+	    hash_create("GeoJSON property keys", Max(tupdesc->natts, 8), &ctl, HASH_ELEM | HASH_CONTEXT);
+#else
 	    hash_create("GeoJSON property keys", Max(tupdesc->natts, 8), &ctl, HASH_ELEM | HASH_CONTEXT | HASH_STRINGS);
+#endif
 
 	/* Build a temporary HeapTuple control structure */
 	tmptup.t_len = HeapTupleHeaderGetDatumLength(td);

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

Summary of changes:
 postgis/lwgeom_out_geojson.c | 4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list