94{
95#if ! (defined HAVE_LIBPROTOBUF && defined HAVE_GEOBUF)
96 elog(ERROR, "ST_AsGeoBuf: Missing libprotobuf-c >= version 1.1");
97 PG_RETURN_NULL();
98#else
99 uint8_t *buf;
101 if (!AggCheckCallContext(fcinfo, NULL))
102 elog(ERROR, "pgis_asmvt_finalfn called in non-aggregate context");
103
104 if (PG_ARGISNULL(0))
105 PG_RETURN_NULL();
106
109 PG_RETURN_BYTEA_P(buf);
110#endif
111}
uint8_t * geobuf_agg_finalfn(struct geobuf_agg_context *ctx)
Finalize aggregation.