307 int natts = tupdesc->natts;
309 bool geom_found =
false;
311 POSTGIS_DEBUG(2,
"parse_column_keys called");
313 for (i = 0; i < natts; i++) {
314 #if POSTGIS_PGSQL_VERSION < 110 315 Oid typoid = getBaseType(tupdesc->attrs[i]->atttypid);
316 char *tkey = tupdesc->attrs[i]->attname.data;
318 Oid typoid = getBaseType(tupdesc->attrs[i].atttypid);
319 char *tkey = tupdesc->attrs[i].attname.data;
321 #if POSTGIS_PGSQL_VERSION >= 94 322 if (typoid == JSONBOID)
327 if (!geom_found && typoid == postgis_oid(GEOMETRYOID)) {
333 if (!geom_found && strcmp(key, ctx->
geom_name) == 0) {
342 elog(ERROR,
"parse_column_keys: no geometry column found");
343 ReleaseTupleDesc(tupdesc);
static uint32_t add_key(struct mvt_agg_context *ctx, char *name)
static TupleDesc get_tuple_desc(struct mvt_agg_context *ctx)