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.managepermission for changes. Withdatabases.viewonly, 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:
Set the window to Tuesdays, 02:00 to 03:00 UTC:
{"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):
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, Set the maintenance window, Postpone the planned update and Run the planned update now.
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.
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.
Next steps
Updates and maintenance
Notice, what happens during an update, and expected times.
Upgrade PostgreSQL version
Move to a newer major version yourself.