Still, if my opinion counts I think SELF-UPDATING MATERIALIZED VIEWS should be the next priority.
Still, if my opinion counts I think SELF-UPDATING MATERIALIZED VIEWS should be the next priority.
Hopefully, some of those restrictions will disappear, because matviews are often used to store pre-aggregted data, so the restriction on GROUP BY would be unfortunate.
https://www.postgresql.org/message-id/flat/20170119213859.GA...
More info in the EDB roadmap: https://wiki.postgresql.org/wiki/EnterpriseDB_database_serve...
Postgres has been amazing in shipping the foundation required to deliver complex feature.. Logical Replication is an example of it, all the piece commited in the last 6y allowed to make this patch achievable.
Even if that is possible, it may be a major performance killer. This has to be done internally, I think.