Drop all functions from Postgres database

后端 未结 2 1415
长情又很酷
长情又很酷 2021-02-12 10:46

I have a database with an old broken version of PostGIS installed in it. I would like to easily drop all functions in the database (they\'re all from PostGIS). Is there a simple

2条回答
  •  再見小時候
    2021-02-12 11:17

    Just as there was a postgis.sql enabler install script, there is also an uninstall_postgis.sql uninstall script.

    psql -d [yourdatabase] -f /path/to/uninstall_postgis.sql
    

    Warning: Be prepared to see your geometry/geography columns and data disappear!

提交回复
热议问题