improved sql parser for postgresql
Merge pull request #717 from wenshao/master

improved sql parser for postgresql