204 #ifndef HAVE_LIBPROTOBUF
205 elog(ERROR,
"Missing libprotobuf-c");
209 elog(DEBUG2,
"%s called", __func__);
210 if (!AggCheckCallContext(fcinfo, NULL))
211 elog(ERROR,
"%s called in non-aggregate context", __func__);
215 bytea *emptybuf = palloc(VARHDRSZ);
216 SET_VARSIZE(emptybuf, VARHDRSZ);
217 PG_RETURN_BYTEA_P(emptybuf);
bytea * mvt_ctx_serialize(mvt_agg_context *ctx)