-
Notifications
You must be signed in to change notification settings - Fork 544
Closed
Description
Ensure that all tables that have an arn field have the correct PK:
- PK for
aws_apigateway_domain_name_base_path_mappings#7346 - PK for
aws_apigateway_rest_api_authorizers#7348 - PK for
aws_apigateway_rest_api_deployments#7352 - PK for
aws_apigateway_rest_api_documentation_parts#7354 - PK for
aws_apigateway_rest_api_documentation_versions#7358 - PK for
aws_apigateway_rest_api_gateway_responses#7363 - PK for
aws_apigateway_rest_api_models#7365 - PK for
aws_apigateway_rest_api_request_validators#7367 - PK for
aws_apigateway_rest_api_resources#7370 - PK for
aws_apigateway_rest_api_stages#7372 - PK for
aws_apigateway_usage_plans#7374 - PK for
aws_apigateway_usage_plan_keys#7377 - PK for
aws_apigateway_vpc_links#7378 - PK for
aws_apigatewayv2_apis#7381 - PK for
aws_apigatewayv2_api_authorizers#7382 - PK for
aws_apigatewayv2_api_deployments#7383 - PK for
aws_apigatewayv2_api_integrations#7384 - PK for
aws_apigatewayv2_api_integration_responses#7385 - PK for
aws_apigatewayv2_api_models#7392 - PK for
aws_apigatewayv2_api_routes#7391 - PK for
aws_apigatewayv2_api_route_responses#7390 - PK for
aws_apigatewayv2_api_stages#7389 - PK for
aws_apigatewayv2_domain_names#7388 - PK for
aws_apigatewayv2_domain_name_rest_api_mappings#7387 - PK for
aws_apigatewayv2_vpc_links#7386 - PK for
aws_cloudfront_cache_policies - PK for
aws_eventbridge_event_bus_rules#7393 - PK for
aws_glue_registry_schemas#7396 - PK for
aws_iam_user_groups#7398 - PK for
aws_lambda_functions - PK for
aws_lambda_layer_versions#7400 - PK for
aws_lightsail_buckets#7402 - PK for
aws_lightsail_certificates#7404 - PK for
aws_lightsail_databases#7403 - PK for
aws_lightsail_disk_snapshots#7406 - PK for
aws_lightsail_load_balancer_tls_certificates#7405 - PK for
aws_mq_broker_configurations#7408 - PK for
aws_qldb_ledger_journal_kinesis_streams#7410 - PK for
aws_route53_hosted_zone_traffic_policy_instances#7411
Query
select * from (SELECT i.relname as indname,
idx.indrelid::regclass,
ARRAY(
SELECT pg_get_indexdef(idx.indexrelid, k + 1, true)
FROM generate_subscripts(idx.indkey, 1) as k
ORDER BY k
) as indkey_names
FROM pg_index as idx
JOIN pg_class as i ON i.oid = idx.indexrelid
join (SELECT column_name,table_name FROM information_schema.columns WHERE table_schema = 'public' and column_name= 'arn') as columns on idx.indrelid::regclass::text = columns.table_name::text
WHERE i.relname like 'aws_%') as k
where '_cq_id' = ANY ( indkey_names ) and indname like '%cqpk';Metadata
Metadata
Assignees
Labels
No labels