What do you mean by "refresh" here? Doesn't a materialized view get updated synchronously with updates to its constituent tables?
REFRESH MATERIALIZED VIEW mymatview;
Which does a full view update.See https://www.postgresql.org/docs/current/rules-materializedvi...