[SCM] PostGIS branch stable-3.6 updated. 3.6.2-10-g4728189d6
git at osgeo.org
git at osgeo.org
Fri Mar 20 14:55:28 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.6 has been updated
via 4728189d613fa7f0b7d8edd8534d02c3a82683bd (commit)
from 7a47242545554391f0d87e788568a97c2ff5513d (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 4728189d613fa7f0b7d8edd8534d02c3a82683bd
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Mar 20 14:54:56 2026 -0700
Use Pg composite_to_json() function in 19+
References #6058
diff --git a/NEWS b/NEWS
index 6c776454a..e8519f017 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ topogeometry corruption:
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.6.2
diff --git a/postgis/lwgeom_out_geojson.c b/postgis/lwgeom_out_geojson.c
index 0338cdf18..3e74708bd 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);
@@ -533,6 +537,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)
{
@@ -598,6 +603,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 | 2 ++
postgis/lwgeom_out_geojson.c | 6 ++++++
2 files changed, 8 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list