the version of pg_query is old and cannot parse quite a few statements now that are valid. I'm happy to help and make a PR, are can somebody provide some insight on where to start?