Debug postgis issues