fix postgresql and set syntax rule