======================================== ANALYSE PHASE 2: Migration vers clés naturelles Date: 2026-01-22 Database: ocft_dataset @ 172.16.163.249 Schema: gduno ======================================== ======================================== ANALYSE TABLE: gduno.organisme ======================================== 1. Foreign Keys référençant organisme.id: table_schema | table_name | column_name | foreign_table_name | foreign_column_name | constraint_name --------------+---------------------+--------------+--------------------+---------------------+--------------------------------------- gduno | organisme_programme | organisme_id | organisme | id | organisme_programme_organisme_id_fkey gduno | personne | organisme_id | organisme | id | personne_organisme_id_fkey (2 rows) 2. Vérification unicité organisme.code: total_rows | distinct_codes | null_count | duplicate_count ------------+----------------+------------+----------------- 370 | 370 | 0 | 0 (1 row) 3. Doublons dans organisme.code (si présents): code | count ------+------- (0 rows) 4. Valeurs NULL dans organisme.code: null_count ------------ 0 (1 row) 5. Nombre total de lignes dans organisme: count ------- 370 (1 row) ======================================== ANALYSE TABLE: gduno.programme ======================================== 1. Foreign Keys référençant programme.id: table_schema | table_name | column_name | foreign_table_name | foreign_column_name | constraint_name --------------+---------------------+--------------+--------------------+---------------------+--------------------------------------- gduno | organisme_programme | programme_id | programme | id | organisme_programme_programme_id_fkey (1 row) 2. Vérification unicité programme.code: total_rows | distinct_codes | null_count | duplicate_count ------------+----------------+------------+----------------- 919 | 919 | 0 | 0 (1 row) 3. Doublons dans programme.code (si présents): code | count ------+------- (0 rows) 4. Valeurs NULL dans programme.code: null_count ------------ 0 (1 row) 5. Nombre total de lignes dans programme: count ------- 919 (1 row) ======================================== ANALYSE TABLE: gduno.municipalite ======================================== 1. Foreign Keys référençant municipalite.id: table_schema | table_name | column_name | foreign_table_name | foreign_column_name | constraint_name --------------+------------+-------------------------+--------------------+---------------------+------------------------------------------ gduno | organisme | municipalite_geo_id | municipalite | id | organisme_municipalite_geo_id_fkey gduno | organisme | municipalite_postale_id | municipalite | id | organisme_municipalite_postale_id_fkey (2 rows) 2. Vérification unicité municipalite.code_isq: total_rows | distinct_codes | null_count | duplicate_count ------------+----------------+------------+----------------- 1113 | 1113 | 0 | 0 (1 row) 3. Doublons dans municipalite.code_isq (si présents): code_isq | count ----------+------- (0 rows) 4. Valeurs NULL dans municipalite.code_isq: null_count ------------ 0 (1 row) 5. Nombre total de lignes dans municipalite: count ------- 1113 (1 row) ======================================== ANALYSE DES VUES ======================================== 1. Vues utilisant organisme.id: schemaname | viewname | definition ------------+---------------------+------------ [5 vues identifiées - voir fichier séparé pour les définitions complètes] 2. Vues utilisant programme.id: schemaname | viewname | definition ------------+---------------------+------------ [5 vues identifiées - voir fichier séparé pour les définitions complètes] 3. Vues utilisant municipalite.id: schemaname | viewname | definition ------------+---------------------+------------ [4 vues identifiées - voir fichier séparé pour les définitions complètes] ======================================== RÉSUMÉ DES VUES IMPACTÉES ======================================== Vues utilisant organisme.id: 1. v_organisme_complet 2. v_organisme_geo 3. v_programme_geo 4. v_superset_dataset 5. [Vue supplémentaire] Vues utilisant programme.id: 1. v_organisme_complet 2. v_organisme_geo 3. v_programme_geo 4. v_superset_dataset 5. [Vue supplémentaire] Vues utilisant municipalite.id: 1. v_organisme_complet 2. v_organisme_geo 3. v_programme_geo 4. v_superset_dataset ======================================== FIN DE L'ANALYSE ========================================