Ad Widget

Collapse

Переход с Mysql на Postgres

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pashast1
    Junior Member
    • Jun 2021
    • 4

    #1

    Переход с Mysql на Postgres

    При переходе с mysql (5.7.21) zabbix 5.2.3 на postgres 13 при выполнении alter.sql ( как указано официально в https://www.youtube.com/watch?v=S-C5NCZJnt0 и https://habr.com/ru/company/zabbix/blog/518546/) появляются 6 ошибок:

    ERROR: insert or update on table "interface" violates foreign key constraint "c _interface_1"
    DETAIL: Key (hostid)=(11863) is not present in table "hosts".

    ERROR: insert or update on table "items" violates foreign key constraint "c_items_4"
    DETAIL: Key (interfaceid)=(32497) is not present in table "interface".

    ERROR: insert or update on table "hosts_groups" violates foreign key constraint "c_hosts_groups_1"
    DETAIL: Key (hostid)=(11863) is not present in table "hosts".
    ALTER TABLE
    ERROR: insert or update on table "hosts_templates" violates foreign key constra int "c_hosts_templates_1"
    DETAIL: Key (hostid)=(11863) is not present in table "hosts".

    ERROR: insert or update on table "item_discovery" violates foreign key constrai nt "c_item_discovery_1"
    DETAIL: Key (itemid)=(493314) is not present in table "items".

    ERROR: insert or update on table "item_discovery" violates foreign key constrai nt "c_item_discovery_2"
    DETAIL: Key (parent_itemid)=(493302) is not present in table "items".

    Что это значит, и как можно починить? Делалось все строго по инструкции по ссылкам выше. остальные ALTER из скрипта alter.sql отрабатывают корректно





Working...