How the OpenProject PostgreSQL 17 upgrade fits your release plan
If your OpenProject install still runs on PostgreSQL 14 or 15, the PostgreSQL 17 move is a database change you plan on its own, but it is usually tied to an OpenProject release. Whether you move the database before or during an application upgrade depends on the target OpenProject version, so confirm the default PostgreSQL version in the release notes for that version before you schedule anything. The supported PostgreSQL versions table lists 14 as supported only until November 12, 2026, and 15 until November 11, 2027, so an older major creates a support deadline that the OpenProject upgrade calendar will not remove.
The supported path starts from OpenProject's own requirement. OpenProject has officially supported PostgreSQL 16 or later since 16.0.0, so an installation on 14 or 15 must move to a supported major before or as part of the upgrade to a current release. OpenProject also requires the pg_trgm, btree_gist and unaccent extensions, so check that the target server, and any managed database service you use, makes all three available to the OpenProject database user before you restore. Confirm these requirements against the OpenProject system requirements for your target version, since extension and version lists change between releases.
In practice, decide early whether the database move is a separate maintenance window or part of the application upgrade, and record the current and target versions of OpenProject, PostgreSQL and each extension. Your team should confirm whether your packaged, Docker Compose or all-in-one install sets the database version for you, because that decides whether the PostgreSQL change arrives with the image or needs a manual step. Put the decision and its owner in the change record before you take the backup described in the sections that follow.
What the PostgreSQL 17 upgrade changes for OpenProject
This table compares what changes on your OpenProject database platform when you move to PostgreSQL 17, row by row, with the action each change needs. Read it before planning the window, because the database server, extensions and dump method each affect how you back up and restore. The main takeaway is that the upgrade is a database platform change, not only a version bump, so your install type decides most of the work.
| Change | Impact | Action needed |
|---|---|---|
| Move from PostgreSQL 14 or 15 to 17 | PostgreSQL 14 support ends November 12, 2026, and 15 ends November 11, 2027. PostgreSQL 17 is supported to November 8, 2029. | Confirm your current major version and decide the target. Plan the move before your current version leaves support. |
| OpenProject requires PostgreSQL 16 or later | Your existing database must be at least version 16 for current OpenProject releases, so older servers cannot stay as they are. | Check the OpenProject system requirements for your release before you upgrade the application. |
| Required extensions: pg_trgm, btree_gist and unaccent | The new server must have all three extensions available and enabled in the OpenProject database, or the application will not run correctly. | Verify the extensions exist on the PostgreSQL 17 server and are created in the target database before restore. |
| Dump and restore method | A major upgrade cannot reuse the old data directory directly. Options include pg_dumpall with restore, pg_upgrade, or logical replication, each with different downtime. | Choose the method with your DBA, test it on a copy of production data, and record how long the restore took. |
| New PostgreSQL 17 server with its own data directory on packaged and all-in-one installs | The database runs as a separate cluster with its own data directory, so the old cluster stays untouched until you switch over. | Keep the old data directory as a rollback path and confirm file ownership, paths and service configuration on the new cluster. |
| Docker image and volume changes on Compose | The database container image and its data volume change with the target version, so a volume from the old major version cannot simply be attached to the new one. | Back up the volumes first, then plan the dump and restore into a new database volume. Confirm the image tag with your OpenProject compose release. |
| PostgreSQL 18 is a separate decision | PostgreSQL 18 was first released September 25, 2025, and its final release is November 14, 2030. It is not required by the OpenProject facts supplied for this topic. | Confirm with OpenProject which PostgreSQL versions your release supports before choosing 18 instead of 17. |
Which migration path a PostgreSQL 17 upgrade takes
This decision path starts from your current PostgreSQL version and install method, whether packaged, Docker Compose or all-in-one. The first hand-off asks whether your users can accept a full stop for a dump and restore. If a short window matters more, logical replication moves data to PostgreSQL 17 while the old server keeps running, and you switch over once the copy catches up. If a full stop is acceptable, check whether pg_upgrade is available on the host before choosing between it and a pg_dumpall restore. Each branch ends at a rollback point: the old cluster, a dump with the original data, or the old server kept to revert. This is a decision path to check your options against. It does not set the order of the steps in your runbook.
Decision path from install method and downtime tolerance to the rollback point each branch keeps.
How each install method changes the PostgreSQL 17 upgrade
Packaged installs use the .deb or .rpm packages on a supported 64-bit Linux host: Ubuntu 22.04, Debian 12, CentOS or RHEL 9.x, or SUSE Linux Enterprise Server 15. PostgreSQL runs as an operating system service, so its binaries come from the distribution's package set and its data directory is managed by that packaging. Confirm the package names, cluster name and data path on your host before you plan the window, and follow the PostgreSQL upgrading docs for the method you choose.
- Binaries and data: PostgreSQL is installed on the host, and the cluster may be registered under a version-specific name, so the old and new major versions can exist side by side. Confirm both paths on your host.
- What to stop: Stop the OpenProject services first so no writes continue, then stop PostgreSQL only after the dump or copy is complete. Confirm the service names in your package set.
- Capturing the data: Take a full logical dump with
pg_dumpallor a physical copy of the cluster while OpenProject is stopped, and store it outside the data directory. - Main risk: An operating system update can replace the PostgreSQL package before the cluster is migrated, which leaves the old service unavailable and the new version without data. Hold package updates during the window.
Check the package versions, service names and cluster paths on a staging copy of the host before you schedule the window.
In a Docker Compose install, the database runs in its own container and keeps its data on a volume that survives container replacement. The PostgreSQL binaries are part of the database image, so the major version follows the image tag, and the data on the volume keeps the format of the cluster that wrote it. Confirm the image tag, the volume name and the mount path in your compose file and .env values before you change anything.
- Binaries and data: The binaries live inside the database image, and the data directory sits on a named or bind-mounted volume. Confirm the volume and mount path in your compose file.
- What to stop: Stop the application containers first, then the database container, so the volume is no longer changing when you copy it.
- Capturing the data: Run
pg_dumpallagainst the running database from a container on the same network, or copy the volume after a clean stop. Store the dump together with a copy of the compose file and.env. - Main risk: Changing the image tag to a PostgreSQL 17 image while the volume still holds an older cluster, which can stop the container at start or leave it reading data it cannot interpret. Record the previous image tag so you can roll back.
Restore the dump into a clean volume on a test stack first, and confirm the image tag and volume name match what your production stack uses.
An all-in-one container runs the application, its background workers and PostgreSQL in one container, so the database may be bundled with the application rather than running as a separate service. The data directory and PostgreSQL version are set by the image itself, which means the upgrade depends on what that image ships. Confirm the bundled PostgreSQL version, the data path and the supervision method in the image documentation for the release you run.
- Binaries and data: The PostgreSQL binaries and data directory are inside the same image and volume. The data path is set by the image, so confirm it before copying anything.
- What to stop: Stop the whole container, because the bundled database shares its lifecycle with the application. Stopping only the web process leaves background jobs writing to the database.
- Capturing the data: Run the dump from inside the running container, or copy the data volume after stopping it. Make that copy before you pull any newer image.
- Main risk: A newer image that ships a different PostgreSQL major version may start against the old data directory, or initialize an empty database if it does not find the expected files. Check that the volume still holds your data before the new container starts.
Run the new image against a copy of the volume on a test host, and confirm the data and the bundled PostgreSQL version before you touch production.
Backups and checks to complete before the PostgreSQL 17 upgrade
The upgrade is only as safe as the copy you can restore from and the environment you tested it in. These cards cover what must be true before anyone touches the production database. Each one closes a specific risk: an unusable backup, a missing extension, an unsupported operating system, an untested migration, a target version nobody agreed on, or a change made without approval.
Verified full backup and attachments
Take a full database dump and a copy of the attachment storage, then restore both onto a separate host. A backup that has never been restored is an assumption, not a recovery plan. Confirm the restored instance starts, logs in, and shows work packages and attached files. Record the time the restore took, since that number sets the floor for your rollback window. Keep the backup somewhere the upgrade host cannot overwrite.
PostgreSQL archiving docsInstalled extensions inventory
List every PostgreSQL extension in the OpenProject database and confirm that pg_trgm, btree_gist and unaccent are present and available on the target PostgreSQL 17 server. OpenProject requires these three extensions. Extensions you added for reporting or other tools also need a compatible build for version 17, so check them against the vendor's documentation. Missing or incompatible extensions are the most common reason a restore fails after the dump has already been taken.
OS and package versions
Confirm the host runs a packaged OS release on OpenProject's supported list: Ubuntu 22.04, Debian 12, CentOS or RHEL 9.x, or SUSE Linux Enterprise Server 15. Check the PostgreSQL 17 package source for that release, not only the OpenProject package. Record current package versions so you can roll back to them. Docker Compose and all-in-one installs need the same check on the container host and the image tags in use.
Production-like test environment
Build a test instance from a recent copy of production data, on the same OS, OpenProject release and PostgreSQL target as the planned change. Run the full upgrade there first and time each step. Test sign-in, attachments, email and any integrations the production instance uses. Results from an empty database do not predict behavior with real data volume, so ask whether the test copy will be refreshed close to the change date.
Target OpenProject version
Record the OpenProject release the instance runs now and the release it will run after the change. The release notes list 17.9.0 (released September 30, 2026) and 17.9.2 (released October 15, 2026) as recent versions, so confirm which one you will target and read its notes before testing. Check that your current version can move to PostgreSQL 17 as part of the planned path, and ask whether a separate OpenProject upgrade is required in the same window.
OpenProject release notesAccess, credentials and approvals
Name the people who hold database superuser, host root and container registry access for the window, and confirm they are available during it. Store credentials in your approved secrets system rather than in a runbook file. Get written approval for the maintenance window, the rollback decision point and who can call a rollback. Agree in advance how users will be told the service is down and who answers if the upgrade runs long.
The PostgreSQL 17 upgrade sequence with rollback points
This sequence moves an existing OpenProject database to PostgreSQL 17 in a planned window, with a verified backup and an untouched old database at every stage so the team can return to the previous state if a check fails.
Freeze changes and announce the window
The OpenProject administrator and the platform owner agree a maintenance window with users, stop scheduled changes to the instance, and confirm which OpenProject release and installation method is running (packaged, Docker Compose or all-in-one). Record the current OpenProject version, the current PostgreSQL version and the list of installed plugins, since these decide which extensions and steps apply. The step is done when the change freeze is written down and the team has a named owner for go or no-go and for rollback. Ask your partner or vendor to confirm the exact window length in writing before you announce it.
Take and verify backups before any change
Create a logical dump of the OpenProject database, a copy of the attachments and file storage, and a copy of the configuration files and environment settings. For Docker Compose and all-in-one installs, also snapshot or copy the data volumes. Verify the dump by restoring it into a scratch PostgreSQL instance and checking that the table count and a sample of work packages match the source. The rollback point is these verified backups, kept separate from the server being upgraded. Do not proceed until a restore test has succeeded.
Install PostgreSQL 17 beside the current version
Install PostgreSQL 17 on the same host or a new one without stopping the existing database. Keep the current data directory or volume read-only in practice by not pointing any service at it during this step. Confirm the server version reports 17 and that the new cluster starts cleanly with the authentication and memory settings your team uses. The old cluster remains the rollback point until sign-off. Confirm with the OpenProject release notes that your target OpenProject release supports PostgreSQL 17 before you rely on it.
Create the required extensions
Create the extensions OpenProject requires in the new database: pg_trgm, btree_gist and unaccent. Run the statements as a role with the necessary privileges, then list installed extensions to confirm all three are present in the target database. Check that the database owner and application role match the names in your OpenProject configuration. The step is complete when the extension list shows all three. If a package for an extension is missing on the host, fix that before any data is loaded.
Move the data with dump and restore, pg_upgrade or logical replication
Choose one path based on your downtime tolerance. A dump and restore into the new cluster is the simplest to reason about and needs the longest stop. pg_upgrade converts the existing data directory in place and needs a stop, and its old cluster can be kept for rollback if you run it without removing the original files. Logical replication can keep the new server in sync and shorten the cutover to seconds, but it adds setup and requires the team to verify replication lag and sequence values before cutover. Whichever path you use, compare row counts and the most recent update timestamps between source and target before continuing.
Stop OpenProject, point it at the new database and start it
Stop the OpenProject services, update the database host, port and connection settings to the PostgreSQL 17 server, and start the application. Keep the old database reachable but unused so you can switch back by restoring the previous configuration. Watch the startup logs for migration or connection errors and confirm the application reports healthy. The step is done when the service starts against PostgreSQL 17 and the application responds on its health endpoint. If startup fails, revert the configuration file and restart against the old cluster, which has not changed.
Run acceptance checks before sign-off
Test login through your configured authentication method, open a project and a work package, edit a work package, add and open an attachment, and confirm that background jobs such as notifications and exports complete. Check the log for database errors and confirm the connection count is stable. Ask a small group of users to verify their own projects. The old cluster and the verified backups stay in place until all checks pass and the owner signs off. Only after sign-off should the team decommission the old data directory or volume.
How long the downtime window lasts and what sets it
The downtime window for a PostgreSQL 17 move depends mostly on which upgrade method you choose. The PostgreSQL upgrading documentation describes two broad approaches. The first is a dump and restore with pg_dumpall, or pg_upgrade, which stops writes to the database for the whole operation. The second is logical replication, which the same documentation says allows a major upgrade with only several seconds of downtime. The first approach is simpler to reason about and easier to roll back. The second keeps OpenProject running while data is copied, but it needs careful setup, a check that every table is replicated, and a clear cutover plan. Decide the method before you estimate anything else, because it changes what you have to rehearse.
The real window is the sum of several parts, and only some of them are PostgreSQL's. It includes the time to take the final backup or let replication catch up, the time to restore or switch over, the number of post-upgrade checks you run before users return, and the time OpenProject takes to restart and reconnect to the new database. Database size affects the dump and restore path most directly. The number of checks is set by your own runbook, including extension presence for pg_trgm, btree_gist and unaccent, and a test login. Ask your team to measure each part during a rehearsal on a copy of production data, on the same hardware class, with the same OpenProject release and image tags. Record the timings and treat them as the baseline for the change window, not a figure taken from another installation.
What drives the effort of a PostgreSQL 17 upgrade
This table lists the factors that set the effort of moving an OpenProject installation to PostgreSQL 17, and what to confirm for each one. Effort follows from these drivers rather than from a fixed template, so use the right-hand column to prepare the information a written scope needs. A quote follows from that scope.
| Driver | Effect on effort | What to confirm |
|---|---|---|
| Database size and attachment volume | Larger dumps and file stores lengthen backup, restore and verification windows and raise the cost of test copies. | Current database size, attachment storage location and volume, and how long a full restore took last time |
| Install method and host count | Packaged, Docker Compose and all-in-one installs follow different steps, and each extra host or container adds steps to check. | Install method, number of application, database and worker hosts or containers, and the exact image tag in use |
| Logical replication or full stop | Logical replication keeps downtime to seconds but adds setup, monitoring and cutover testing. A full stop is simpler but needs a fixed maintenance window. | Whether the business accepts a stop-the-world window, and the longest outage the users and sponsors will approve |
| Extension and plugin checks | OpenProject requires pg_trgm, btree_gist and unaccent. Installed plugins or custom database objects need their own compatibility checks. | Installed extensions, plugin list with versions, and any custom database objects or triggers |
| Custom integrations that read the database directly | Reporting tools, scripts or data feeds that query tables directly must be tested against PostgreSQL 17 and may need connection changes. | Full list of systems with direct database access, their owners, and their connection settings |
| Number of environments | Each environment needs its own backup, restore and upgrade run, so test, staging and production multiply the work. | How many environments exist, whether staging matches production in size and configuration, and who owns each |
| Automated and tested backups and restores | Teams with tested, scripted backups spend less time on preparation. Untested or manual backups add discovery and verification work. | Backup tool and schedule, date of the last successful restore test, and where backups are stored |
| Sign-off and change control | Formal approval gates, change records and evidence requirements add review cycles before and after the window. | Approvers, change board dates, required evidence, and the approval lead time |
| Rollback rehearsal | A rehearsed rollback to the previous PostgreSQL version is needed before production. Skipping it shifts risk to the night of the change. | Whether rollback must be rehearsed on a copy of production, and how long the old data must stay recoverable |
How to test the PostgreSQL 17 upgrade and roll it back
Test the upgrade on a copy of production data before anyone schedules a cutover. Restore the most recent backup into a PostgreSQL 17 instance on separate hardware, then confirm that the OpenProject application starts against it and that the pg_trgm, btree_gist and unaccent extensions are present in the restored database. Work through a short script: sign in with a local account, open a project with a large work package list, check that Gantt views render and that dependencies and dates match the source, and open a work package with attachments to confirm the files download. Create a comment that mentions another user and confirm the notification is sent. Run any scheduled or queued background jobs and confirm they finish. If SSO or LDAP is configured, test each sign-in path with a test account, because identity settings are the item most often missed in a database move. Record the elapsed time for the restore, the migration and the service restart. That number is your cutover estimate, and it should come from your own environment, not from a generic figure.
Keep the PostgreSQL 14 or 15 data directory untouched until the business owners sign off on the test results. The rollback path depends on that original data still being readable. Define rollback triggers before the cutover window opens. Typical triggers include failed sign-in tests, missing attachments, Gantt or notification failures that the test plan reproduces, extension errors, or background jobs that stop processing. Write the decision owner and the deadline for the call into the change record. If you roll back after users have written to the new database, every change made after the cutover is lost unless you export it and replay it by hand, so the write freeze must be enforced at the application level and the rollback decision must be made while it is still in effect. Note that PostgreSQL 14 support ends on November 12, 2026, according to the PostgreSQL versioning policy. Do not plan to keep the old cluster as a fallback indefinitely. Confirm the retirement date for the old data and set a dated plan for removing it.
Questions teams ask before the PostgreSQL 17 upgrade
What does a PostgreSQL 17 upgrade for OpenProject cost?
No price applies to this work from the facts we have, and DeployOpen does not publish a price list. The cost follows from the written scope, which depends on how many OpenProject instances you run, whether the install is packaged, Docker Compose or all-in-one, how large the database is, whether extensions or custom plugins need checking, and how many test cycles you want before cutover. Your own staff time for the maintenance window, backup storage and any test host are internal costs that recur only if you repeat the work. Ask any partner for a quote that lists the environments in scope, the test rounds, the rollback plan and who signs off the result.
How long does the upgrade take, and what sets the downtime?
The duration depends on the size of the database, the install type and how many rehearsals run before production. Downtime is mostly set by the dump, restore or pg_upgrade step, and by the time needed to restart OpenProject and confirm it works. Logical replication can cut the switch-over window to seconds according to the PostgreSQL documentation, but it adds setup and monitoring work and needs a clear plan for changes made during replication. Confirm the window by timing a full rehearsal on a copy of your production data, not by estimating it.
What must our team provide for the upgrade?
Your team needs to provide the following before work starts:
- Administrative access to the OpenProject host or container, and to the PostgreSQL server
- A current, tested backup of the database and the attachment storage, plus a copy kept outside the upgrade path
- A test host with a similar OpenProject version and data volume
- An agreed maintenance window that users and integrations can accept
- A named owner who signs off the test results and approves the go-live decision
Without the test host and the sign-off owner, rehearsals tend to end without a clear go or no-go decision.
Can our internal team run the upgrade without outside help?
Yes, if your team already administers Linux servers, PostgreSQL and the OpenProject install type you run. The work needs skills in PostgreSQL backup and restore, extension management for pg_trgm, btree_gist and unaccent, service restarts, log reading and rollback. Teams without recent PostgreSQL major-upgrade experience usually spend most of their time on rehearsals and verification rather than the commands themselves. Check whether you have someone who can read the release notes for OpenProject 17 and the PostgreSQL 17 upgrade guidance and decide which steps apply to your setup.
Does the Community edition or an Enterprise plan change the upgrade steps?
The database steps are the same for both editions, because the PostgreSQL requirements apply to the OpenProject application regardless of plan. The plan matters for what you verify afterwards. Enterprise add-ons such as single sign-on through SAML, OIDC, CAS, Kerberos or Okta, LDAP group synchronization and custom branding need to be tested again after the database change. The published Enterprise prices are per named user per month: Basic at 5.95 euros and Professional at 10.95 euros with a 25-user minimum, Premium at 15.95 euros with a 100-user minimum, and Corporate on request for 250 or more users. Those prices do not change the upgrade effort itself.
Do Docker Compose or all-in-one installs need different work?
Yes, the work differs in how the database is reached and where its data lives. In a Docker Compose setup, PostgreSQL usually runs in its own container or service with a volume, so the team needs to know which image tag, volume and environment settings apply before dumping or replacing data. An all-in-one container packages the database inside the same image, so backing up the volumes first and confirming the data path matters most. In both cases, check the extensions that OpenProject requires after the move and confirm the upgrade path with the current Docker Compose guidance for your OpenProject release.
What happens if the restore fails during the upgrade?
If the restore fails, the plan should send you back to the last known good state without guessing. Keep the original PostgreSQL data directory or volume untouched until the new server passes verification, and keep a separately stored backup that you have already tested for restore. The rollback depends on whether the change was done in place with pg_upgrade or on a new server, and whether any users wrote data during the window. Record the failure point, the error and the restore time, then decide whether to fix the cause and rehearse again. Ask for a documented rollback procedure before go-live.
How DeployOpen works on this
DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, including the OpenProject PostgreSQL 17 move. The work starts with a written scope that fixes the installation type, the upgrade method and the downtime window before any change is made to your database.
How we scope
- Confirm your installation type: packaged, Docker Compose or all-in-one container, and the current OpenProject release.
- Record your current PostgreSQL major version and the extensions your database already uses, including pg_trgm, btree_gist and unaccent.
- Agree in writing which upgrade method, backup target and acceptable downtime window apply to your installation.
How we build
- Take and verify a full backup of the OpenProject database and attachments before any change is made.
- Rehearse the restore on a non-production copy and confirm the OpenProject instance starts and serves work packages.
- Run the chosen upgrade method in your environment, then check extensions, planner statistics and background jobs.
How we hand over
- Deliver a written runbook covering the steps used, rollback points, commands run and the verification checks performed.
- Document the final PostgreSQL 17 configuration, the backup schedule and the retention settings in your environment.
- Walk your platform and database owners through the runbook and record open items with agreed owners.
How we support
- Engagements are fixed-scope, so support after handover is quoted separately against a written support scope.
- Ongoing support, OpenProject upgrades and continuous testing are available as retainers.
- Ask us to confirm the PostgreSQL 17 end-of-life date and the next planned major upgrade in your support plan.

