150 #ifndef HAVE_LIBPROTOBUF
151 elog(ERROR,
"Missing libprotobuf-c");
155 elog(DEBUG2,
"%s called", __func__);
156 if (!AggCheckCallContext(fcinfo, NULL))
157 elog(ERROR,
"%s called in non-aggregate context", __func__);
161 bytea *emptybuf = palloc(VARHDRSZ);
162 SET_VARSIZE(emptybuf, VARHDRSZ);
163 PG_RETURN_BYTEA_P(emptybuf);
bytea * mvt_ctx_serialize(mvt_agg_context *ctx)