PostGIS connection is not released when datasource is deleted #433

Closed
artemp opened this Issue Oct 11, 2011 · 2 comments

Comments

Projects
None yet
1 participant
Owner

artemp commented Oct 11, 2011

No description provided.

Owner

artemp commented Oct 11, 2011

[springmeyer] This needs more testing, however for one postgres layer this seems to work fine in either of 3 situations:

  1. mapnik process ends
  2. postgis datasource object is deleted
  3. map containing the datasource is deleted

Illustration of #3:
{{{

import mapnik
m = mapnik.Map(45,45)
mapnik.load_map(m,'pg.xml')
SELECT f_geometry_column, srid FROM geometry_columns WHERE f_table_name='world_worldborders' AND f_geometry_column='geometry'
setting geometry field to=geometry
setting SRID to=4326
using srid=4326
using geometry_column=geometry
unknown type_oid=16760
del m
PostGIS: closed connection 0x86cc00
exit()
}}}

Owner

artemp commented Oct 11, 2011

[springmeyer] applied in r1337

@artemp artemp closed this Oct 11, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment