Question

Doadmin permissions for spatial_ref_sys in postgis

Posted November 29, 2019 766 views
DigitalOcean Managed PostgreSQL Database

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

Thanks

1 comment
  • I’ve also run into the same issue. I need to add a custom projection, but I don’t have permissions to INSERT into the spatial_ref_sys table.

    doadmin does not have super user privileges, so I’m unable to grant the relevant permissions over the table or change its ownership.

    I’d appreciate some guidance on how to do this - is it even possible?

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.

×
Submit an Answer
1 answer

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.