postgres: use st_estimatedextent with postgis >= 2.1 (fixes #9011)