News for hackers. Stuff that matters.
Re:Composable SQL (Functors) by sa46 on Wednesday January 29, 2025 @12:18AM (#42861830)
As of Postgres 12 (Oct. 2019) CTEs are no longer materialized by default and are eligible for predicate push down.

The planner may still struggle but it’s not true that a CTE is an optimization fence.

https://www.depesz.com/2019/02/19/waiting-for-postgresql-12-...

There are no comments on this comment yet.