New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qgis hang when postgres close the connection #14716
Comments
Author Name: Jürgen Fischer (@jef-n) Which version do you use? master should survive connection losses. |
Author Name: Giovanni Manghi (@gioman) Hi Jurgen, I'm using master. Just tested a 1 hour idle time, after that any action makes qgis hang. |
Author Name: Jürgen Fischer (@jef-n) Giovanni Manghi wrote:
Not reproducable here. And debug output? |
Author Name: Giovanni Manghi (@gioman)
try the attached project (with only postgis data). Let me know if it works fine for you.
|
Author Name: Jürgen Fischer (@jef-n) Fixed in changeset "262392093356f7600089bf44d19984b56ec85bab".
|
Author Name: aperi2007 - (aperi2007 -) oops, it is again here. After a while, when postgres close the connection, I use postgres 9.1.3 and postgis 2.0 beta2. Andrea.
|
Author Name: Giovanni Manghi (@gioman) it happens also with postgres 8.4/postgis 1.5 and qgis master |
Author Name: Giovanni Manghi (@gioman)
This may be not a QGIS problem after all. What I have noticed is that if I connect to a PostgreSQL server that is the same "local" network (in my case is the pretty big network of a University) then the connection does not fall. If I connect to the same server but from a remote connection then the connection falls after a while. I say that is probably not a QGIS problem because the same thing happens also with PgAdmin. |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Jürgen Fischer (@jef-n) Fixed in changeset "262392093356f7600089bf44d19984b56ec85bab".
|
Author Name: aperi2007 - (aperi2007 -)
Original Redmine Issue: 4909
Affected QGIS version: master
Using qgis and postgres/postgis.
I notice that when I stop my work for a lot of time (40-50 minutes), postgres logically close the connection for client inactivity.
When I try to continue my work, qgis will hang waiting postgres will response. And is necessary to kill qgis and restart it.
I guess actually qgis open the connection to the postgres when I add a postgres table to the canvas and i presume it will remain open forever.
Instead qgis should test the connection every 10-15 minutes for every distinct istance of postgres used in the canvas and try to reopen the connection if it is find closed.
Related issue(s): #13375 (duplicates)
Redmine related issue(s): 3315
The text was updated successfully, but these errors were encountered: