Lesser Known Postgres Features (2021)
hakibenita.com
hakibenita.com
(the same like in Oracle - https://docs.oracle.com/en/database/oracle/oracle-database/1... - but I would not need the fancy "query rewrite" feature that make SQLs use the matView even if they don't explicitly mention it in their SQL)
Lots and lots of theory about how to do this correctly.
I authored a project to do this with triggers. https://github.com/rivethealth/denorm
Otherwise the best alternative would be something like https://materialize.com
SELECT COLUMNS('_id$') FROM table;
SELECT * EXCEPT(id) FROM table;
SELECT * REPLACE(i + 1 AS i) FROM table;
SELECT * APPLY(toString) FROM table;One tiny thing I discovered which I use a surprising amount is `table <tablename>;` is equivalent to `select * from <tablename>;`.
`watch` is the coolest Postgres feature that I've discovered recently.
Would benefit from putting "2021" in the title
Latest Releases 2023-08-10 - PostgreSQL 15.4, 14.9, 13.12, 12.16, 11.21, and PostgreSQL 16 Beta 3 Released!