Trying to install PostGIS

Posted December 24, 2019 1.1k views
DigitalOcean Managed PostgreSQL Database

The project I created this managed database for requires the postgis extension to be installed. However, the system seems to create the extension under the postgres user (superuser).

That seems to cause the following error when trying to “CREATE EXTENSION postgis_topology;”: > ERROR: type “geometry” does not exist

I have tried all known solutions, like ensuring that the postgis schema is in the search_path, but I think the problem is caused by the ownership.

As We cannot access a superuser, how can I install postgis? It is a must to continue using the managed database. As we are not allowed to change the owner of the extension, Can I get someone from your team to do it?

Alternatively, am I missing something in the extension creation process, that would avoid this?

Thank you in advance for all the help!

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!