By ilauzirika
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!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @ilauzirika,
I was able to execute create postgis and postgis_topology extension commands without an error using “doadmin” user.
defaultdb=> CREATE EXTENSION postgis;
CREATE EXTENSION
defaultdb=> CREATE EXTENSION postgis_topology;
CREATE EXTENSION
Managed Database Clusters do support some modern PostgreSQL extensions. These can be enabled with the create extension command. More information about create extension and DO supported extensions can be found in the following documentation:
https://docs.digitalocean.com/products/databases/postgresql/resources/supported-extensions/
You can raise a support case with Do if you are facing any issue with the Postgres extension creation.
I hope this helps!
Regards, Rajkishore
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.