[postgis-devel] performance of force_collection()

strk at refractions.net strk at refractions.net
Fri Feb 25 00:45:18 PST 2005


On Fri, Feb 25, 2005 at 12:42:09AM -0800, Ron Mayer wrote:
> strk at refractions.net wrote:
> >Just another note. Your patch is not forcing a copy on DETOAST.
> >This would usually be the case, but if input is not a copy
> >editing it is an unsafe operation.
> 
> Ah yes... so I guess I should have checked
>    TYPE_GETTYPE(geom->type) == COLLECTIONTYPE
> and just return without editing it if I wanted to
> avoid copying potentially large geometries?

Yes, that would be safe.

--strk;



More information about the postgis-devel mailing list