| ▲ | siddboots 2 days ago | |||||||
I think your assumption about inlining is essentially correct. As far as I know postgres was the last major rdbms to have an optimiser fence around CTEs. | ||||||||
| ▲ | nraynaud 2 days ago | parent [-] | |||||||
I concur, “the Germans” have created an algorithm that completely “see through” subqueries/CTEs when planning a query. The way the query is written has no bearing on the execution. | ||||||||
| ||||||||