I think this is a known bug: mappostgis.c never closes its cursors (which is required with postgres >= 7.3) --strk