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

Definition at line 168 of file lwgeom_accum.c.

References pgis_accum_finalfn(), and result.

169 {
170  pgis_abs *p;
171  Datum result = 0;
172 
173  if (PG_ARGISNULL(0))
174  PG_RETURN_NULL(); /* returns null iff no input values */
175 
176  p = (pgis_abs*) PG_GETARG_POINTER(0);
177 
178  result = pgis_accum_finalfn(p, CurrentMemoryContext, fcinfo);
179 
180  PG_RETURN_DATUM(result);
181 
182 }
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:143
char ** result
Definition: liblwgeom.h:218
To pass the internal ArrayBuildState pointer between the transfn and finalfn we need to wrap it into ...
Definition: lwgeom_accum.c:61

Here is the call graph for this function: