Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zomgwat
· 3y ago · 0 comments
As of PostgreSQL 12, whether the optimization fence is used or not is controlled with MATERIALIZED and NOT MATERIALIZED.
Comments
[–]
srcreigh
3y ago
By default it’s an optimization fence if a CTE is referenced 2+ times, and not an optimization fence if referenced 0-1 times. The MATERIALIZED and NOT MATERIALIZED overrides the default.