Postgis version workaround