326{
327 uint32_t i, natts;
328 bool geom_found = false;
329
330 POSTGIS_DEBUG(2, "parse_column_keys called");
331
334
339
340 for (i = 0; i < natts; i++)
341 {
344
346
347 if (typoid == JSONBOID)
348 {
350 continue;
351 }
352
354 {
355 if (!geom_found && typoid == postgis_oid(GEOMETRYOID))
356 {
358 geom_found = true;
359 continue;
360 }
361 }
362 else
363 {
364 if (!geom_found && strcmp(tkey, ctx->
geom_name) == 0)
365 {
367 geom_found = true;
368 continue;
369 }
370 }
371
374 (strcmp(tkey, ctx->
id_name) == 0) &&
375 (typoid == INT2OID || typoid == INT4OID || typoid == INT8OID))
376 {
378 }
379 else
380 {
382 }
383 }
384
385 if (!geom_found)
386 elog(ERROR, "parse_column_keys: no geometry column found");
387
389 elog(ERROR,
"mvt_agg_transfn: Could not find column '%s' of integer type", ctx->
id_name);
390}
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