Skip to content
RED SAG Skills
mediumStudy question · answer published in SQL interview questions, so no pointspostgresqlquery-planningsql

CTE acts as an optimisation fence

On PostgreSQL 16, a query uses WITH x AS MATERIALIZED (SELECT ...) and the planner cannot push the outer WHERE into it. What does removing MATERIALIZED do?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions