175 #ifndef HAVE_LIBPROTOBUF
176 elog(ERROR,
"Missing libprotobuf-c");
179 MemoryContext aggcontext, oldcontext;
181 elog(DEBUG2,
"%s called", __func__);
182 if (!AggCheckCallContext(fcinfo, &aggcontext))
183 elog(ERROR,
"%s called in non-aggregate context", __func__);
185 oldcontext = MemoryContextSwitchTo(aggcontext);
187 MemoryContextSwitchTo(oldcontext);
189 PG_RETURN_POINTER(ctx);
mvt_agg_context * mvt_ctx_deserialize(const bytea *ba)