PGAdmin: Not connected to the server or the connection to the server has been closed

Jorge picture Jorge · Dec 21, 2016 · Viewed 29.4k times · Source

i got this problem with postgreSQL, when i do a simple query of anything (CRUD), sometimes it works and almost always shows this message:

Not connected to the server or the connection to the server has been closed.

I don't know how to solve it and it started to irritate me, anyone know how to fix it?

UPDATE 1

I have been searching and it seems the pgadmin4 the problem (it seems because it's not 100% developed yet), i have been using pgadmin3 and that error doesn't show up.

Answer

lucidbrot picture lucidbrot · Mar 10, 2017

The reason this happened for me was a syntax error in the query. Check your syntax and try again, maybe this suffices