Andreas Karlsson <andr...@proxel.se> writes: > I have a minor biksheddish question about the syntax. > You proposed: > WITH cte_name [[NOT] MATERIALIZED] AS (query) main_query > While Andrew proposed: > WITH cte_name AS [[NOT] MATERIALIZED] (query) main_query > Do people have any preference between these two?
FWIW, I'd independently thought that the latter is more readable, and probably less likely to have syntax problems with future extensions (since AS is already fully reserved). Didn't get around to mentioning it yet, but +1 for putting AS first. regards, tom lane