Or at least only install the postgis dependent tables if they're there.
I think it's just a matter of running
"SELECT name, default_version,installed_version
FROM pg_available_extensions WHERE name LIKE 'postgis%' or name LIKE 'address%';"
If the result is greater than 0, then postgis is installed.
Or at least only install the postgis dependent tables if they're there.
I think it's just a matter of running "SELECT name, default_version,installed_version FROM pg_available_extensions WHERE name LIKE 'postgis%' or name LIKE 'address%';"
If the result is greater than 0, then postgis is installed.