196 #ifndef HAVE_LIBPROTOBUF
197 elog(ERROR,
"Missing libprotobuf-c");
200 MemoryContext aggcontext, oldcontext;
202 elog(DEBUG2,
"%s called", __func__);
203 if (!AggCheckCallContext(fcinfo, &aggcontext))
204 elog(ERROR,
"%s called in non-aggregate context", __func__);
208 oldcontext = MemoryContextSwitchTo(aggcontext);
210 MemoryContextSwitchTo(oldcontext);
211 PG_RETURN_POINTER(ctx);
mvt_agg_context * mvt_ctx_combine(mvt_agg_context *ctx1, mvt_agg_context *ctx2)