250 #ifndef HAVE_LIBPROTOBUF
251 elog(ERROR,
"Missing libprotobuf-c");
254 MemoryContext aggcontext, oldcontext;
256 elog(DEBUG2,
"%s called", __func__);
257 if (!AggCheckCallContext(fcinfo, &aggcontext))
258 elog(ERROR,
"%s called in non-aggregate context", __func__);
262 oldcontext = MemoryContextSwitchTo(aggcontext);
264 MemoryContextSwitchTo(oldcontext);
265 PG_RETURN_POINTER(ctx);
mvt_agg_context * mvt_ctx_combine(mvt_agg_context *ctx1, mvt_agg_context *ctx2)