exu/pgsql.vim — pull request #3 by richard-huxton-dev (2013-06-29 06:19:20+00:00)
Title: Syntax file seemed to be missing dollar-quoting, which this adds

The \z stuff is apparently necessary to make backreferences work in syntax regions.
That's based on nothing more than what the internet says, but it seems to work.