What does HackerNews think of pg_ivm?
IVM (Incremental View Maintenance) implementation as a PostgreSQL extension
Still waiting for automatic incremental updates for materialized views - been worked on for several years but still not released!
https://wiki.postgresql.org/wiki/Incremental_View_Maintenanc...
> That work towards incrementally updated views is happening and progressing. For now, it's a separate extension, though: https://github.com/sraoss/pg_ivm.
The basic idea seems to be to track the primary keys of the base tables in the incremental view and then use triggers to update those rows when source rows are updated.
The meat of the project is over here for anyone that’s interested - in particular this section about the limitations is pretty interesting (and expected).
https://github.com/sraoss/pg_ivm/#supported-view-definitions...