Most question I've seen regarding materialized views and automation concerned either refreshing views periodically or refreshing them on some trigger.
It could be said, that my problem is reverse of that. Given some materialized view, I'd like to call some function that inserts some rows into some other table. So, basically something like "create trigger after refresh on ". The problem is, there's no such trigger type as "after refresh".
Is it achievable natively in Postgres?