3 ms·
According to the docs [1] this is not necessary: > All queries in the WITH list are computed. These effectively serve as temporary tables that can be reference
by mulmen 3y ago
According to the docs [1] this is not necessary:
> All queries in the WITH list are computed. These effectively serve as temporary tables that can be referenced in the FROM list. A WITH query that is referenced more than once in FROM is computed only once, unless specified otherwise with NOT MATERIALIZED.
[1]: https://www.postgresql.org/docs/15/sql-select.html https://www.postgresql.org/docs/15/sql-select.html