262{
263#ifndef HAVE_LIBPROTOBUF
264 elog(ERROR, "ST_AsMVT: Compiled without protobuf-c support");
265 PG_RETURN_NULL();
266#else
267 MemoryContext aggcontext, oldcontext;
269 elog(DEBUG2, "%s called", __func__);
270 if (!AggCheckCallContext(fcinfo, &aggcontext))
271 elog(ERROR, "%s called in non-aggregate context", __func__);
272
275 oldcontext = MemoryContextSwitchTo(aggcontext);
277 MemoryContextSwitchTo(oldcontext);
278 PG_RETURN_POINTER(ctx);
279#endif
280}
mvt_agg_context * mvt_ctx_combine(mvt_agg_context *ctx1, mvt_agg_context *ctx2)