I have been working using psycopg2 to control a local postgresql server in a multiple modules model (of my PhD thesis).
After some time I got a error in the model and it keep a ghost connection, which have been cause trouble when I run the model with the new connection to postgresql server, it call other modules of the model.
At my computer is shown multiples connections of postgresql at same time, ten in total. The older connection has in the properties the last modification 35 days ago.
I uninstall the python, the postgresql and delete the database, after that I re install everything again, and the problem still there.
If there are any guest or help, I appreciate.