PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ pgis_geometry_accum_finalfn()

Datum pgis_geometry_accum_finalfn ( PG_FUNCTION_ARGS  )

Definition at line 207 of file lwgeom_accum.c.

References PG_FUNCTION_INFO_V1(), pgis_accum_finalfn(), and pgis_geometry_union_finalfn().

Referenced by pgis_accum_finalfn().

208 {
209  pgis_abs *p;
210  Datum result = 0;
211 
212  if (PG_ARGISNULL(0))
213  PG_RETURN_NULL(); /* returns null iff no input values */
214 
215  p = (pgis_abs*) PG_GETARG_POINTER(0);
216 
217  result = pgis_accum_finalfn(p, CurrentMemoryContext, fcinfo);
218 
219  PG_RETURN_DATUM(result);
220 
221 }
Datum pgis_accum_finalfn(pgis_abs *p, MemoryContext mctx, FunctionCallInfo fcinfo)
The final function rescues the built array from the side memory context using the PostgreSQL built-in...
Definition: lwgeom_accum.c:182
To pass the internal ArrayBuildState pointer between the transfn and finalfn we need to wrap it into ...
Definition: lwgeom_accum.c:83
Here is the call graph for this function:
Here is the caller graph for this function: