337{
338 uint32_t i, natts;
339 bool geom_found = false;
340
341 POSTGIS_DEBUG(2, "parse_column_keys called");
342
345
350
351 for (i = 0; i < natts; i++)
352 {
355
357
358 if (typoid == JSONBOID)
359 {
361 continue;
362 }
363
365 {
366 if (!geom_found && typoid == postgis_oid(GEOMETRYOID))
367 {
369 geom_found = true;
370 continue;
371 }
372 }
373 else
374 {
375 if (!geom_found && strcmp(tkey, ctx->
geom_name) == 0)
376 {
378 geom_found = true;
379 continue;
380 }
381 }
382
385 (strcmp(tkey, ctx->
id_name) == 0) &&
386 (typoid == INT2OID || typoid == INT4OID || typoid == INT8OID))
387 {
389 }
390 else
391 {
393 }
394 }
395
396 if (!geom_found)
397 elog(ERROR, "parse_column_keys: no geometry column found");
398
400 elog(ERROR,
"mvt_agg_transfn: Could not find column '%s' of integer type", ctx->
id_name);
401}
static uint32_t add_key(mvt_agg_context *ctx, char *name)
static TupleDesc get_tuple_desc(mvt_agg_context *ctx)
mvt_column_cache column_cache
uint32_t * column_keys_index