For this reason I would strongly advise, in the spirit of https://wiki.postgresql.org/wiki/Don't_Do_This, that you Don't Do Materialized Views.
Sure, Differential/Timely Dataflow exist and they're very interesting; I have not gotten to build a database system with them and the systems that provide them in a usable format to end users (e.g. Materialize) are too non-boring for me to want to deploy in a production app.
https://github.com/sraoss/pg_ivm
It's however not available on RDS, so I've never had the chance to try it myself.
Only certain kinds of conditions, such as a rolling window over a timestamp field, seem amenable to efficient incremental updates. What am I missing?
> There are a few startups these days peddling a newfangled technology called “incremental view maintenance” or “differential dataflow”
I think they should be a little more explicit about the differences though, because it can be very misleading for those who arent aware of the distinction.