Refresh a materialized view automatically using a rule or notify
问题 I have a materialized view on a PostgreSQL 9.3 database which seldom changes (about twice a day). But when it does, I\'d like to update its data promptly. Here is what I was thinking about so far: There is a materialized view mat_view which gets its data from tables table1 and table2 using some join statement. Whenever something in table1 or table2 changes, I already have a trigger wich updates a little configuration table config consisting of table_name | mat_view_name | need_update --------