[postgis-tickets] r15322 - Use PG_DETOAST_DATUM_COPY instead of clone deep
bjorn at wololo.org
bjorn at wololo.org
Mon Mar 6 12:40:10 PST 2017
Author: bjornharrtell
Date: 2017-03-06 12:40:10 -0800 (Mon, 06 Mar 2017)
New Revision: 15322
Modified:
trunk/postgis/geobuf.c
Log:
Use PG_DETOAST_DATUM_COPY instead of clone deep
References #3720
Modified: trunk/postgis/geobuf.c
===================================================================
--- trunk/postgis/geobuf.c 2017-03-05 11:58:54 UTC (rev 15321)
+++ trunk/postgis/geobuf.c 2017-03-06 20:40:10 UTC (rev 15322)
@@ -539,8 +539,8 @@
datum = GetAttributeByNum(ctx->row, ctx->geom_index + 1, &isnull);
if (!datum)
lwerror("geobuf_agg_transfn: geometry column cannot be null");
- gs = (GSERIALIZED *) PG_DETOAST_DATUM(datum);
- lwgeom = lwgeom_clone_deep(lwgeom_from_gserialized(gs));
+ gs = (GSERIALIZED *) PG_DETOAST_DATUM_COPY(datum);
+ lwgeom = lwgeom_from_gserialized(gs);
feature = encode_feature(ctx);
More information about the postgis-tickets
mailing list