[SCM] PostGIS branch stable-3.5 updated. 3.5.5-9-g8316e53d0
git at osgeo.org
git at osgeo.org
Fri Mar 20 14:55:56 PDT 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, stable-3.5 has been updated
via 8316e53d03ea6e5d20dddc579060ab4948de6219 (commit)
from ab7f1ce7030c4ad66a16bd4f7f33972a35bf061b (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 8316e53d03ea6e5d20dddc579060ab4948de6219
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Mar 20 14:55:37 2026 -0700
Use Pg composite_to_json() function in 19+ (Paul Ramsey)
Closes #6058
diff --git a/NEWS b/NEWS
index b7a5fe7f4..1368fcc02 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ PostgreSQL 12-18 required. GEOS 3.8+ required. Proj 6.1+ required.
Reported by Sven Klemm (Tiger Data), Allistair Ishmael Hakim (allistair.sh)
and Daniel Bakker
- GH-850 Use quote_identifier to build tables in pgis_tablefromflatgeobuf (Ariel Mashraki)
+ - #6058, Use Pg composite_to_json() function in 19+ (Paul Ramsey)
PostGIS 3.5.5
diff --git a/postgis/lwgeom_out_geojson.c b/postgis/lwgeom_out_geojson.c
index 931344c1c..7a6e89bb8 100644
--- a/postgis/lwgeom_out_geojson.c
+++ b/postgis/lwgeom_out_geojson.c
@@ -62,8 +62,12 @@ static void composite_to_geojson(FunctionCallInfo fcinfo,
bool use_line_feeds,
Oid geom_oid,
Oid geog_oid);
+
+#if POSTGIS_PGSQL_VERSION < 190
static void composite_to_json(Datum composite, StringInfo result,
bool use_line_feeds);
+#endif
+
static void datum_to_json(Datum val, bool is_null, StringInfo result,
JsonTypeCategory tcategory, Oid outfuncoid,
bool key_scalar);
@@ -534,6 +538,7 @@ array_to_json_internal(Datum array, StringInfo result, bool use_line_feeds)
/*
* Turn a composite / record into JSON.
*/
+#if POSTGIS_PGSQL_VERSION < 190
static void
composite_to_json(Datum composite, StringInfo result, bool use_line_feeds)
{
@@ -599,6 +604,7 @@ composite_to_json(Datum composite, StringInfo result, bool use_line_feeds)
appendStringInfoChar(result, '}');
ReleaseTupleDesc(tupdesc);
}
+#endif
/*
* Process a single dimension of an array.
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
postgis/lwgeom_out_geojson.c | 6 ++++++
2 files changed, 7 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list