Incremental Materialized Views

The cluster discusses incremental view maintenance and continuous materialized views in PostgreSQL, including alternatives like PipelineDB, Materialize, RisingWave, and ReadySet for real-time updates on writes rather than full recomputation. Users express desire for native Postgres support and share workarounds using triggers or streaming databases.

📉 Falling 0.4x Databases
2,961
Comments
19
Years Active
5
Top Authors
#2694
Topic ID

Activity Over Time

2008
6
2009
9
2010
11
2011
33
2012
47
2013
71
2014
69
2015
103
2016
134
2017
137
2018
113
2019
187
2020
332
2021
372
2022
356
2023
360
2024
327
2025
267
2026
27

Keywords

RisingWave S3 readyset.io OLTP materialize.com TABLE released.html SQL views.html KQL materialized postgres views incremental query table tables changes triggers real time

Sample Comments

rubenvanwyk Jul 18, 2025 View on HN

This seems very good. Always wondering what are the usecases for this apart for observability/real-time analytics? Do people use this for incremental view maintenance in Postgres?

eterps Aug 23, 2025 View on HN

Isn't this wat streaming databases like Materialize and RisingWave do?

grammr Jul 7, 2015 View on HN

Founder @ PipelineDB here (hi Slava!)Currently continuous views must read from a stream. However, in the very near future it will possible to write to streams from triggers, which would probably give you enough flexibility to model the behavior you want if you could conceptualize a table as a stream of changes.

benesch May 14, 2024 View on HN

Not to my knowledge. I believe TimescaleDB has their own incremental view maintenance engine.

icebraining Oct 1, 2016 View on HN

PipelineDB (based on Postgres) seems to get the best of both worlds by allowing you to specify a query, like materialized views, but refreshing those results based on inserts/updates, like triggers: https://www.pipelinedb.com/Not affiliated, not even a user, just found it interesting when it was posted here.

thom Mar 1, 2022 View on HN

This is a really interesting area, would love it if Postgres provided a strong option here. In the meantime, Materialize has very good Postgres integration if it might work for you:https://materialize.com/

tango12 May 6, 2019 View on HN

Is this similar to pipelinedb’s continuous aggregates?

nitinreddy88 Oct 3, 2024 View on HN

Precisely, whats stopping them from using simple Incremental Materialised view?

Nelkins Jun 21, 2022 View on HN

I think this is what you're looking for:https://wiki.postgresql.org/wiki/Incremental_View_Maintenanc...https://yugonagata-pgsql.blogspot.com/2022/05/pgivm-v10-rele...

fabian2k Jun 21, 2022 View on HN

Materialized views that are updated efficiently when new rows are added or rows updated would be a really great feature to have in core Postgres. This certainly would be useful outside of timeseries data.