PostGIS  2.2.7dev-r@@SVN_REVISION@@
Datum pgis_geometry_accum_finalfn ( PG_FUNCTION_ARGS  )

Definition at line 193 of file lwgeom_accum.c.

References pgis_accum_finalfn().

194 {
195  pgis_abs *p;
196  Datum result = 0;
197 
198  if (PG_ARGISNULL(0))
199  PG_RETURN_NULL(); /* returns null iff no input values */
200 
201  p = (pgis_abs*) PG_GETARG_POINTER(0);
202 
203  result = pgis_accum_finalfn(p, CurrentMemoryContext, fcinfo);
204 
205  PG_RETURN_DATUM(result);
206 
207 }
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:168
To pass the internal ArrayBuildState pointer between the transfn and finalfn we need to wrap it into ...
Definition: lwgeom_accum.c:69

Here is the call graph for this function: