Запрос на изменение не завершается в течении 9 часов в Postgres

Вот собственно сам запрос:

update acs_event
    set institution = t2.institution_id
    from acs_event t1
    LEFT JOIN "acs_controller"
        ON (t1."controller_id" = "acs_controller"."id")
    JOIN "acs_building" t2
        ON ("acs_controller"."building_id" = t2."id");

В таблице 4 млн строк. Работает уже более 9 часов. Кто сталкивался с таким? Может я что то не так делаю?

Аналогичный select завершается за 7 сек.

select t1.institution, t2.institution_id
    from acs_event t1
             LEFT JOIN "acs_controller"
                       ON (t1."controller_id" = "acs_controller"."id")
             JOIN "acs_building" t2
                  ON ("acs_controller"."building_id" = t2."id");

Ответы (0 шт):