Session Start Failed: syntax error at or near "SET"

I installed erpnext application with new site which uses postgres as Database. When I run the bench it showed the login page and i sucessfully logged in as Administrator too. But after login this “SESSION START FAILED” alert box came out. Please help me to check this out