178 #ifndef HAVE_LIBPROTOBUF
179 elog(ERROR,
"Missing libprotobuf-c");
184 elog(DEBUG2,
"%s called", __func__);
185 if (!AggCheckCallContext(fcinfo, NULL))
186 elog(ERROR,
"%s called in non-aggregate context", __func__);
190 bytea *emptybuf = palloc(VARHDRSZ);
191 SET_VARSIZE(emptybuf, VARHDRSZ);
192 PG_RETURN_BYTEA_P(emptybuf);
197 PG_RETURN_BYTEA_P(buf);
bytea * mvt_agg_finalfn(mvt_agg_context *ctx)
Finalize aggregation.