ALTER TABLE yksus1
SET SCHEMA firma1;
Mais detalhes no manual:https://www.postgresql.org /docs/current/static/sql-altertable.html
Não tenho certeza sobre a função de gatilho, mas existe um equivalente
ALTER FUNCTION .. SET SCHEMA ... também. ALTER TABLE yksus1
SET SCHEMA firma1;
ALTER FUNCTION .. SET SCHEMA ... também.