124 #ifndef HAVE_LIBPROTOBUF
125 elog(ERROR,
"Missing libprotobuf-c");
130 elog(DEBUG2,
"%s called", __func__);
131 if (!AggCheckCallContext(fcinfo, NULL))
132 elog(ERROR,
"%s called in non-aggregate context", __func__);
136 bytea *emptybuf = palloc(VARHDRSZ);
137 SET_VARSIZE(emptybuf, VARHDRSZ);
138 PG_RETURN_BYTEA_P(emptybuf);
143 PG_RETURN_BYTEA_P(buf);
bytea * mvt_agg_finalfn(mvt_agg_context *ctx)
Finalize aggregation.