Skip to main content

Pause, resume and delete a database

Pausing a database stops it and stops the charge for its plan, while its data stays on its volume. You pay only for that storage until you resume it. Resuming starts it again with the same host, port, user, password and data. Deleting a database removes it, its data and its backups for good.

At a glance​

PauseResumeDelete
DataKeptKeptDeleted, with all backups
ConnectionsRefusedAccepted again once ReadyGone
Host, port, passwordKeptUnchangedGone
BillingStorage only, at the volume rateThe plan againStops
StatusPausing, then PausedStarting, then ReadyTerminating, then removed
UndoResumePauseNot possible

What does a paused database cost?​

A paused database is billed only for its storage: the plan's volume size at the per GB volume rate, the same rate as Kubernetes volumes. CPU and RAM aren't billed. For example, a PostgreSQL database on the Standard plan keeps its 6 GB volume while paused, and that 6 GB is what you pay for.

The Pause Database dialog shows the exact monthly amount for your database, and cloider pricing lists the paused price of every plan in its PAUSED column. See how databases are billed.

What happens while a database is paused?​

  • The database server is stopped. Nothing can connect to it, over the public host, the private host, the terminal or cloider db exec.
  • Its volume and data are kept as they are.
  • No new backups are taken and no changes are recorded, because there is nothing running. A database must be resumed before it can be restored into a new database.
  • Insights aren't sampled.
  • The connection details don't change. Apps that use the database get connection errors until you resume it.

Pause a database​

The database must be Ready to be paused.

  1. Open Databases in the sidebar.
  2. Click the ⋮ button in the database's row and choose Pause.
  3. The Pause Database dialog says that the database stops running and its plan is no longer billed, and how much its storage costs per month while paused. Click Pause database.
The Pause Database dialog for orders-db, saying the plan is no longer billed and showing the monthly price of its storage while paused, with Cancel and Pause database buttons
The dialog shows what the database costs while paused.

The status changes to Pausing, then Paused.

Resume a database​

  1. Open Databases in the sidebar.
  2. Click the ⋮ button in the database's row and choose Resume.
  3. In the Resume Database dialog, click Resume database.

The status changes to Starting, then Ready.

After a resume, the database has the same host, port, user, password and data as before the pause. Connection pools in your apps reconnect on their own once it is Ready.

Delete a database​

Deleting a database permanently removes the database, its data, its volume and all of its backups. It can't be undone.

Deleting is permanent

Before you delete a database you might need again, export its data with pg_dump, mysqldump, mongodump or redis-cli --rdb, see make your own backups. Cloider's backups and recorded changes are deleted together with the database.

  1. Open the database and go to the Settings tab, then click Delete database in the danger zone. (Or click ⋮ in the database's row on the Databases list and choose Delete.)
  2. The Delete Database dialog asks whether you are sure. Click I want to delete the database.
  3. Type the database's label to confirm, then click the delete button (labeled Delete cluster).
The Delete Database dialog asking to type orders-db to confirm deleting the database
Deleting asks you to type the database's label.

The database shows Terminating while it is removed, then disappears from the list.

Billing stops when the database is deleted. On the free plan, a deleted database no longer counts toward the one database limit.

Pause or delete: which one?​

SituationChoose
A staging or demo database you need again next weekPause
A database you aren't sure you still needPause, or export the data, then delete
A database you will never need againDelete
You want to stop all chargesDelete (a paused database still costs its storage)
You want to keep an old copy cheaply for a long timeExport it to a bucket, then delete

Troubleshooting​

Pause is greyed out in the menu​

Only a Ready database can be paused. Wait until a running change (creating, resizing, an SSL change) has finished.

The database stays in Pausing or Starting​

Pausing and resuming usually take a minute or two. If the status hasn't changed after 15 minutes, contact support with the database's id.

This database is paused. Resume it to open a terminal!​

The terminal and cloider db exec need a running database. Resume it first.

You have read-only access to this account, you can not pause databases!​

Your role or API token is read-only. The same applies to resuming and deleting.

Next steps​

Frequently asked questions

Do I keep my data when I pause a database?

Yes. A paused database keeps its volume and all its data. When you resume it, it has the same host, port, user, password and data as before.

How much does a paused database cost?

Only its storage: the plan's volume size at the per GB volume rate. The plan's CPU and RAM are not billed while it is paused. The Pause Database dialog and cloider pricing show the exact monthly amount.

Can I connect to a paused database?

No. A paused database is stopped, so connections, the browser terminal and cloider db exec all fail until you resume it.

Are backups taken while a database is paused?

No, a paused database is not running and can't be backed up. To restore a paused database into a new database, resume it first.

Can I recover a deleted database?

No. Deleting a database also deletes its backups, so it can't be recovered. Export the data before deleting a database you might need again.