> ## 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.

# Manage database updates: window, postpone, update now

> Set the weekly maintenance window of a managed database, postpone a planned update, or run it now, from the dashboard or the API.

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

Raff updates every database to the latest build of its version in a weekly maintenance window, after a notice. Choose the window, move an update that comes at a bad time, or take it now. See [Updates and maintenance](https://docs.rafftechnologies.com/products/store/databases/concepts/updates-and-maintenance.md) for how updates work.

## Before you start

* A database on a paid plan to set the window. On the free plan Raff picks it; Postpone and Update now work on every plan.
* The `databases.manage` permission for changes. With `databases.view` only, the dashboard shows the updates and the window with the buttons disabled.

## In the dashboard

Open the database and go to **Settings**. The card **Versions and maintenance** shows the updates, the window and the history.

### Set the maintenance window

**1. Open the window**

In **Maintenance window**, click **Change**.

**2. Pick the window**

Choose **Let Raff pick** for the quietest hour of the database's week, or **Choose a day and hour**, in your time zone.

**3. Save**

Click **Save**. A planned update moves to the first time in the new window after its planned date. It never moves earlier.

### Postpone a planned update

In **Updates inside**, the planned update shows **What**, **When**, the expected **Interruption** and **Postpone until**. A move to the next version, such as **Move to MySQL 8.4**, shows the same and is postponed the same way.

**1. Choose how far**

Click **Postpone a week** (**Postpone a day** for a security fix) to move it to the next window, or **Pick a time** to choose a date and hour.

**2. Confirm**

Click **Postpone**. An update can be postponed 3 times and never past its last date.

### Update now

Click **Update now**, then **Update now** in the dialog. The update starts within a minute: a backup first, then a short restart. The status shows **Updating** until it is done.

## With the API

Read the database's planned updates:

```bash theme={null}
curl https://api.rafftechnologies.com/api/v1/databases/a1b2c3d4/maintenance \
  -H "X-API-Key: $RAFF_API_KEY"
```

| Field | Meaning |
| - | - |
| `window_day`, `window_hour` | The weekly window in UTC: day 0 = Sunday, the hour it starts |
| `window_auto` | `true` when Raff picks the window |
| `window_raff_only` | `true` on the free plan: the window cannot be changed |
| `upcoming` | The planned or running update, or `null` |
| `upcoming.scheduled_for`, `upcoming.last_date` | When it runs, and the latest time it can be postponed to |
| `upcoming.postpones_left` | Postpones left, out of 3 |
| `upcoming.expected_seconds` | How long the database is expected to refuse connections |
| `upcoming.moves_to` | The version the update moves the database to, such as `8.4`, when its version has reached the end of its support. Empty for every other update |
| `history` | Updates that ran, newest first: `state` `done` or `failed`, `measured_ms` the measured interruption, `message` what happened when it failed, `started_by` `window`, `customer`, `resume` or `support` |

Set the window to Tuesdays, 02:00 to 03:00 UTC:

```bash theme={null}
curl -X PUT https://api.rafftechnologies.com/api/v1/databases/a1b2c3d4/maintenance/window \
  -H "X-API-Key: $RAFF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"day": 2, "hour": 2}'
```

Send `{"auto": true}` to let Raff pick it again.

Postpone the planned update to the next window, or to a time you choose (send no body for the next window):

```bash theme={null}
curl -X POST https://api.rafftechnologies.com/api/v1/databases/a1b2c3d4/maintenance/postpone \
  -H "X-API-Key: $RAFF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "2026-12-20T10:00:00Z"}'
```

Run it now:

```bash theme={null}
curl -X POST https://api.rafftechnologies.com/api/v1/databases/a1b2c3d4/maintenance/update-now \
  -H "X-API-Key: $RAFF_API_KEY"
```

Each call answers with the whole view, as the `GET` does. A `412` means the change is not possible right now, for example no update is planned, it is already running, no postpones are left, or the database is paused; the `error` says why. A `400` means a value is wrong, or the window of a free database was set. See [Get planned updates](https://docs.rafftechnologies.com/api-reference/databases/get-database-maintenance.md), [Set the maintenance window](https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window.md), [Postpone the planned update](https://docs.rafftechnologies.com/api-reference/databases/postpone-database-maintenance.md) and [Run the planned update now](https://docs.rafftechnologies.com/api-reference/databases/update-database-maintenance-now.md).

From the CLI (version 0.6.16 or newer): `raff database maintenance get <database-id>`, then `window`, `postpone` or `update-now --wait`. See [raff database](https://docs.rafftechnologies.com/reference/cli/database.md#maintenance).

**Terraform**: with provider version 0.4.15 or newer, set `maintenance_day` and `maintenance_hour` on `raff_database` to choose the window, or leave them out to let Raff pick it. See [raff\_database](https://docs.rafftechnologies.com/reference/terraform/raff_database.md#maintenance-window).

## Next steps

> [card] [Updates and maintenance](https://docs.rafftechnologies.com/products/store/databases/concepts/updates-and-maintenance.md)
>
> Notice, what happens during an update, and expected times.

> [card] [Upgrade PostgreSQL version](https://docs.rafftechnologies.com/products/store/databases/quickstart-guides/upgrade-postgresql-version.md)
>
> Move to a newer major version yourself.


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