Bug report #9280

"Add postgis layer" creates a connection that is not removed until qgis is terminated

Added by Matt Veenstra almost 11 years ago. Updated almost 11 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Affected QGIS version:2.0.1 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:17892

Description

This is observed by monitoring the pgadmin III server status window while adding and removing postgis layers.

When adding a postgis layer, upon clicking "connect" in the dialogue box, 1 connection is created; then, clicking "add" layer to map creates an additional connection. The second connection is removed when the layer is removed from the map; however, the first connection is never removed and remains until qgis is exited.

Qgis 2.0.1
PostgreSQL 9.2.4
Postgis 2.0.3

Associated revisions

Revision 1215d0b0
Added by Jürgen Fischer almost 11 years ago

postgres provider:
- fix connection cleanup from threads
- fix disconnection of style functions

fixes #9280 (adapted PR#1051)

History

#1 Updated by Alvaro Huarte almost 11 years ago

  • Pull Request or Patch supplied changed from No to Yes
  • Resolution set to fixed/implemented

I propose this pull request:
https://github.com/qgis/QGIS/pull/1051

#2 Updated by Jürgen Fischer almost 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF