Vim supports several different SQL dialects out-of-the box, but it looks
like PostgreSQL is not available by default (and it assumes that if no
dialect is specified, it will try to use Oracle SQL).
The above looks invalid to my eye for Oracle (but it's been a awhile
since I used Oracle SQL intensively), so I wouldn't expect this to work
properly. So perhaps looks for specific PostgreSQL syntax file.
The already mentioned pgsql from lifepillar seems to be specific for
PostgreSQL (even so it seems to have the same issue as mentioned
elsewhere).
See also :h ft_sql.txt and :h sql.vim
Best,
Christian
--
Frage an Radio Eriwan:
Wir wollen in unserer Schule Schillers Wilhelm Tell aufführen. Dürfen wir das?
Radio Eriwan antwortet:
Im Prinzip ja - aber woher wollt ihr den Apfel nehmen?