I’m using DigitalOcean App Platform and have a dev database with PostgreSQL 17 set up. As part of my planning, I’d like to create a separate schema to attain fine-grained access control.
I’m able to connect to my database using “psql” through the console of my web service.
my-db=> CREATE SCHEMA private;
ERROR: permission denied for database my-db
I can only assume the user provided by DO does not have the permission to create a schema and I seem to be unable to grant it as well:
my-db=> GRANT CREATE ON DATABASE "my-db" TO "my-db";
WARNING: no privileges were granted for "my-db"
GRANT
Is there anything that can be done about this?
Running \l
shows that the owner of the database is doadmin
, but I have not been giving the credentials for that user.
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!
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.