By slig
I’m on a managed DO Postgres 14 cluster, and it has the pg_read_all_data role.
After creating a new user called backup using the DO interface, I tried to log in as doadmin and executing:
GRANT pg_read_all_data TO backup;
But I’m getting :
ERROR: must have admin option on role "pg_read_all_data"
Since this pg_read_all_data is quite new, I couldn’t find anything about this error. Can anyone help me here?
Thanks!
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!
Hey @slig,
The doadmin user does not have the superuser so this is why you are getting that error. Basically, with the managed databases, users cannot access the superuser role, that is done as this is a managed service, and such actions are needed to maintain cluster stability.
What I could suggest is to reach out to our amazing support team who might be able to help you with granting the additional role:
Though keep in mind that it is possible that it might be possible that the extra role can not be granted on a managed cluster.
If this is the case, you could try running your own Postgres instance where you would have full access:
Hope that helps!
- Bobby.
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.