Fix postgis pending behavior