I have a setup with an auto configured Postgres database, and a regular droplet ubuntu server.
I wish to copy a file from the server to the postgres db. However when I run the sql command
COPY table name from file.csv
It results with the error: must be superuser or a member of the pg_read_server_files role to COPY from a file
I am connected to the db with the default created user in the postgres db (doadmin) I cannot use the command line to connect a superuser through my other droplet, I have the: must be superuser to alter superusers when trying to setup doadmin as a superuser…
How can I proceed?
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!
looking at this thread it seems that, the doadmin user i was using is not superuser. will create my own postgres
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.