Question

Doadmin permissions for spatial_ref_sys in postgis

I’ve created a Managed PostgreSQL Database with the Postgis extension. It creates the spatial_ref_sys table with the list of supported reference projections for spatial queries. I need to add a new projection to spatial_ref_sys but it gives the error: permission denied for table spatial_ref_sys. I’ve used the doadmin user to create the extension and the table spatial_ref_sys is owned by postgres user. I can’t change the ownership, neither the permissions. How can I do that with my user privileges?

Thanks

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Same here. Since it is still not answered after several months, this would probably be a reason for me to abandon database clusters managed by Digital Ocean and create the one by hand. Another critical issue for me was inability to restore the same database cluster from a daily backup - you can only create a new one which is very uncomfortable, especially when you need to do this often for testing purposes.