> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rafftechnologies.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Database updates and maintenance window

> How Raff keeps managed databases up to date with security and bug fixes, in a weekly maintenance window you choose, with notice, Postpone and Update now.

<sub>Updated December 5, 2026</sub>

Raff keeps every managed database on the latest build of the version it runs: security and bug fixes, for example PostgreSQL 18.7 to 18.8. Each update is announced ahead, runs in the database's weekly maintenance window, and takes a short restart. Your version stays the same and nothing in your app changes.

## How it works

### What Raff updates

* **Newer builds of the same version.** Fixes to the engine and the system it runs on. The major version never changes: a PostgreSQL 18 database stays on PostgreSQL 18.
* **Not a newer major version.** That can change how your app behaves, so you start it yourself; see [Upgrade PostgreSQL version](https://docs.rafftechnologies.com/products/store/databases/quickstart-guides/upgrade-postgresql-version.md). An upgrade also brings the latest fixes, so a planned update is no longer needed after it. The one exception is a version that no longer gets security fixes; see [When a version reaches the end of its support](#when-a-version-reaches-the-end-of-its-support).
* **A build that restarts nothing.** When a new build changes only a tool that runs beside the database, such as the backup tool, Raff moves to it without a restart and without a notice. It is listed in the history.

### The maintenance window

Each database has one hour a week when Raff may update it.

* **Let Raff pick** (the default): the quietest hour of the database's week, from its own traffic. Until it has a week of traffic, Sunday 07:00 to 08:00 UTC.
* **Choose a day and hour**: any hour of the week. The dashboard shows it in your time zone; the API uses UTC.
* **Free plan**: Raff picks the window and it cannot be changed.

When you change the window, a planned update moves to the first time in the new window after its planned date. It never moves earlier.

### Notice

| Update | Runs | Can be postponed until |
| - | - | - |
| Regular update, paid plan | In the first window at least 7 days away | 14 days after the first planned date |
| Regular update, free plan | In the first window at least 3 days away | 14 days after the first planned date |
| Critical security fix | At the window's hour, on the first day at least 24 hours away | 3 days after the notice |

The project's members get an email and a notification in the dashboard when an update is planned, a reminder a day before, and one when it is done or did not go through. The database's **Overview** shows a line when an update is planned within 7 days.

### Postpone and Update now

* **Postpone** moves the update to the next window, a week later (a day later for a security fix), or to a time you pick. An update can be postponed 3 times, and never past its last date.
* **Update now** starts the planned update within a minute instead of waiting for the window. The database must be running.

### During an update

1. **A backup is taken first.** Nothing changes until it is done. Kafka has no backups, so its updates start at step 2.
2. **The database restarts on the new build.** Open connections are closed and your applications reconnect. The status shows **Updating**; in the API, `status` is `resizing` and `status_message` starts with `Updating`.
3. **Raff checks the database runs the new build** and takes connections. Then the status is **Healthy** again.

How long the database refuses connections, as expected for each update:

| Engine | One server | High availability |
| - | - | - |
| PostgreSQL | About 30 seconds | About 15 seconds, also with read replicas (it switches to a copy already on the new build) |
| MySQL | About 20 seconds | About 25 seconds of refused writes |
| Valkey | About 10 seconds | About 5 seconds |
| ClickHouse | About 35 seconds | About 5 seconds |
| Kafka | About 60 seconds | About 5 seconds |

Each planned update shows its own expected time before it runs, and the measured time once it is done. A short restart during an update is not counted as down and sends no Down email.

### When a version reaches the end of its support

A version that no longer gets security fixes cannot be kept safe. Raff then moves the databases on it to the next supported version, as a planned update. Today this applies to MySQL 8.0, which moves to MySQL 8.4 LTS.

* **The same notice and controls.** The move is announced like any update and runs in your maintenance window. You can postpone it 3 times, pick a time, or use **Update now**. In **Settings**, the card shows it as **Move to MySQL 8.4**.
* **Checked first.** Raff runs MySQL's own upgrade check on your database before the move is planned and again right before it runs. If the check finds something MySQL 8.4 cannot take, nothing is planned, nothing changes, and Raff looks into it.
* **One restart.** A backup first, then writes stop, the database restarts once on 8.4 and Raff checks it. Expect about 45 seconds.
* **What stays the same.** The address, the port, your users, their passwords and your data.
* **The older login method keeps working.** MySQL 8.4 switches `mysql_native_password` off by default. On a moved database Raff leaves it on, so accounts that use it sign in as before. To move an account to the current method: `ALTER USER 'app'@'%' IDENTIFIED WITH caching_sha2_password BY 'new-password';`
* **If the move does not go through.** The database returns to MySQL 8.0 by itself. If the 8.4 server had already started, Raff restores the backup taken at the start of the move; the message says from which minute.
* **After the move.** MySQL cannot go back from 8.4 to 8.0 on the same data. A restore point from before the move restores into a new database, which runs 8.0. See [Backups and point-in-time restore](https://docs.rafftechnologies.com/products/store/databases/concepts/backups-and-restore.md).

A paused free database is not moved while it is paused. It resumes on 8.0 and the move is planned then, with the usual notice.

### If an update does not go through

If the update cannot complete, the database goes back to the build it ran before by itself, unchanged. The dashboard and the email say what happened. Raff looks into it before the update is planned again.

### Paused free databases

A paused free database is never woken for an update. It is updated when you resume it, with no interruption of its own and no email.

### History

**Settings**, **Versions and maintenance** lists every update that ran, with the date, what it brought, who started it and how long the database was offline, together with your major version upgrades.

## When to use it

* Set your own window when your traffic has a quiet hour Raff cannot see, such as a weekly batch job.
* Postpone an update that falls on a launch or a busy day.
* Use **Update now** to take an update at a time you are watching, for example right after a deploy.

## Trade-offs

* Every update restarts the database once. Clients that reconnect by themselves do not notice more than a short pause; add retry logic to those that do not.
* A database with high availability is interrupted for less time, because its copies are updated one at a time.
* An update cannot be skipped: it can be postponed 3 times and never past its last date.

## Related

> [card] [Manage database updates](https://docs.rafftechnologies.com/products/store/databases/quickstart-guides/manage-updates.md)
>
> Set the window, postpone or update now.

> [card] [Status and health](https://docs.rafftechnologies.com/products/store/databases/concepts/status-and-health.md)
>
> What each status means.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.