By elab
I have a managed PostgreSQL which went into read-only mode after one of the tables got a little too big and the database storage exceeded its limit.
I can’t find any way do put it back into write mode so I can free up some space.
What do I do in such a case?
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!
Hi there
Thanks for reaching out to DigitalOcean Support.
I understand you want to know how to disable read only mode when managed database storage is full. This usually happens when your database is running out of free disk space. If your disk space gets maxed out backup will not be properly created, the database service can start malfunctioning.
Our system automatically detects your database service is running out of free space and places in read-only mode by setting the default_transaction_read_only to ON; This prevents writes to the database and also ensures the entire disk space is not maxed out
The clients will receive errors like cannot execute CREATE TABLE in a read-only transaction.
To remove your database from the read-only mode you will need to do one of the below two options:
Upgrade to a larger plan from the DigitalOcean Console Delete data from your database by changing the transaction mode to read-write for your session by executing:
SET default_transaction_read_only = OFF;
This will enable you to delete data from within your session.
Please let us know if you have additional questions/concerns
Regards DigitalOcean Support
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.