Upgrading the PostgreSQL database behind Plane

Plane's database has to stay on a supported PostgreSQL release, and the upgrade path depends on where the database runs. This page covers the version requirement, the upgrade methods, the sequence, and how to test Plane's migrations afterwards.

On this page

When to upgrade PostgreSQL for Plane and which path is supported

Your self-hosted Plane database has to move to a supported PostgreSQL release, and the method you use depends on where PostgreSQL runs: in the bundled container, on a managed service, or on servers your team operates. The supported major versions today are 18, 17, 16, 15 and 14, with end-of-support dates of November 14, 2030, November 8, 2029, November 9, 2028, November 11, 2027 and November 12, 2026 respectively. Versions 13 and earlier are no longer supported. If your instance runs 14 or older, plan the move now, because 14 leaves support in November 2026, and treat the Plane version line you are on as the other half of the decision.

A minor upgrade replaces executables and restarts the server without changing the on-disk storage format, so it is usually a routine patch. A major upgrade changes the storage format and needs a dump and restore, pg_upgrade, or logical replication. Plane's own requirements add a constraint: the supported database line depends on the Plane release you run, and the PostgreSQL release you pick must match what that Plane version and its migrations expect. Read the release notes for your current Plane version before choosing a target, and confirm the minimum PostgreSQL version with your Plane documentation rather than assuming the bundled container is current.

Check the Plane version and the database version together, in a single change record. Record the output of SELECT version(); against the database Plane connects to, and compare it with the Plane release on your running instance. If the bundled container is older than your Plane release requires, or if your managed service is approaching end of support, the upgrade becomes a dated change with a rollback point rather than a routine patch. Confirm with your Plane support contact which target major version your release supports before scheduling the work.

What changes for Plane when PostgreSQL moves to a newer major version

This table compares the PostgreSQL 18 changes that matter during a major upgrade with the Plane-specific requirements a team must confirm. Read each row as a question to answer in your own environment before the cutover. The main takeaway is that the PostgreSQL version Plane supports is the first thing to verify, and that the authentication method Plane uses decides whether a password change is needed.

ChangeImpact on PlaneAction needed
Supported Plane PostgreSQL version (15.7 or 16.x)Plane's self-hosting documentation sets the database version it expects, and the bundled container runs 15.x. Moving to 18 may fall outside what Plane documents.Confirm the current requirement in Plane's self-hosting documentation before publishing or upgrading, and do not move to a version Plane does not list.
pg_upgrade keeps planner statisticsQuery plans can stay stable right after a major upgrade instead of needing a full statistics rebuild, which shortens the period of slow Plane pages.Check whether your upgrade path uses pg_upgrade, then measure page response times on a test copy of Plane.
Parallel jobs and --swap option in pg_upgradeParallel jobs can shorten the data conversion step on large Plane databases. The --swap option changes how old and new data directories are handled.Test the chosen flags on a copy of the database and confirm the rollback path before the production window.
Asynchronous I/OChanges how the server reads data from disk. Plane workloads may see different performance under load.Compare query timings and disk activity in staging against the current release, and watch for regressions.
OAuth 2.0 authentication methodAdds a new method to pg_hba.conf. It only matters if your database connection is set up to use it.Keep the existing method unless you have a reason to change it, and document any change in the connection settings.
uuidv7() functionAdds a time-ordered UUID generator. Plane does not require it, but any custom SQL or reporting that uses it will need PostgreSQL 18.Search your custom queries and integrations for uuidv7() before deciding on the target version.
Virtual generated columns by defaultGenerated columns that do not specify a storage type are now virtual. Any Plane-related custom schema or reporting view relying on stored values could behave differently.Review custom schema objects and specify STORED where the stored value is required.
MD5 password deprecated in favor of SCRAMIf Plane connects to PostgreSQL with password authentication using MD5 hashes, the connection may need updating before the upgrade.Confirm the password hash method for the Plane database role, move it to SCRAM, and test the connection from Plane services.

How Plane's services reach PostgreSQL and the storage around it

The diagram starts at the users' browsers and the Plane web, API and worker services inside the customer's boundary. Each service reads and writes PostgreSQL, while Redis or Valkey, RabbitMQ and S3-compatible storage handle queues, cache and uploads. PostgreSQL can be the bundled container or an external managed service, and a standby or PgBouncer sits between the services and the primary if the design uses one. Check every connection string and the database network path before you start a major upgrade, because each service must reconnect to the new server.

Plane services connect to one PostgreSQL endpoint, with supporting stores alongside.

Which PostgreSQL versions are supported and when support ends

PostgreSQL ships one major release a year and supports each major version for five years after its initial release. Minor releases arrive at least once every three months. For planning a Plane database, the practical question is which major version you will run after your next upgrade, and how long that version will receive fixes. As of the versioning policy, the supported majors are 14, which ends on November 12, 2026; 15, which ends on November 11, 2027; 16, which ends on November 9, 2028; 17, which ends on November 8, 2029; and 18, which ends on November 14, 2030. Versions 13 and earlier are already unsupported, so any Plane database still on them carries open security and reliability risk that the owning team has to accept or fix.

Treat end-of-support dates as the deadline for a major upgrade, not the date to start one. A major upgrade on a database that serves a production Plane instance needs a rehearsal, a rollback path and a window agreed with the people who use the tracker. If your database is on 14, the first date to plan around is November 12, 2026, and the work includes the dump, restore or replication steps and the Plane testing described in the sections that follow. Confirm the exact supported PostgreSQL range for the Plane release you run in Plane's own documentation, because Plane may require a narrower set than the community policy lists, and the target version should sit inside both ranges.

Record the current major version, the support end date and the chosen target in your change calendar, and name the owner who signs off on the upgrade. Ask your infrastructure team, or your managed database provider, which major versions they offer and how long each stays available, since a managed service may retire a version earlier or later than the community schedule. Keep this record with your Plane operations runbook so that the next version decision is made against current facts rather than memory.

Choosing between dump and restore, pg_upgrade, and logical replication

Dump and restore exports the cluster with pg_dumpall from the old server and loads the output into a newer PostgreSQL server. It is the most conventional method and the easiest to reason about, because the new server is built from logical SQL rather than from the old storage files. The cost is time: the source database must stay unchanged from the start of the dump until the restore finishes, so downtime grows with data size.

  • Downtime: Plane writes must stop for the whole dump and restore window, so this method suits instances where a planned maintenance period is acceptable.
  • Data size: Restore time scales with database size, index rebuilds and the number of objects, so confirm the duration on a copy of your own data before scheduling.
  • Cutover: The new server is a clean build, which makes rollback simple as long as the old server is kept intact until verification passes.
  • Bundled container: Works well for the PostgreSQL container shipped with Plane, where you control the image, the volume and the restart sequence.
  • Managed service: Fits a managed PostgreSQL service when its import access and extension support allow a logical restore into the target instance.

Before choosing this method, confirm with your Plane deployment documentation and your provider's guidance that pg_dumpall access and the target version are available in your environment.

What to complete before touching the database

Most of the risk in a PostgreSQL upgrade for Plane sits before the first command runs. The cards below cover the backups, recovery options, inventory, test copy and communication that let you roll back cleanly if the new database version or Plane's migrations misbehave.

Verified backup and restore test

Take a fresh dump of the Plane database and restore it on a separate machine before anything else. A backup that has never been restored is an assumption, not a recovery plan. Confirm the restore completes, that Plane starts against it, and that projects, work items and attachments metadata appear as expected. Record how long the restore took so you can plan the change window around it.

Upgrade docs

Point-in-time recovery plan

If your environment supports continuous archiving, set up base backups and WAL archiving so you can recover to a moment just before a failed upgrade step. Without it, your only restore point is the last full dump. Confirm where archives are stored, who can access them, and whether you can actually replay them to a chosen timestamp on a test host.

Continuous archiving docs

Inventory of Plane versions and connection settings

Record the Plane release you run, the edition, and how each service reaches PostgreSQL, including host, port, database name, user and the SSL setting. Note whether Plane uses the bundled container or a managed service. This tells you which connection strings, environment variables or Helm values must change after the upgrade, and which Plane version must support your target PostgreSQL release.

Extensions and database customizations

List every extension, custom function, role, and scheduled job defined on the Plane database, along with any reporting queries or external tools that read it directly. Extensions must exist on the target server before restore, and some may need versions that match the new major release. Confirm each one is available for your target version and has an owner who can test it.

Test environment with production data

Build a staging copy of Plane from a recent production dump, running the same Plane release and target PostgreSQL version. Run the upgrade there first and let Plane apply its migrations against the copied data. Check sign-in, project and cycle views, file downloads and background jobs. Use the results to estimate duration and to decide whether the production change can proceed.

Change window and user communication

Agree a maintenance window that covers the dump, restore, Plane migrations and verification, with time reserved for rollback. Tell users when Plane will be unavailable, what they should save or avoid during the window, and who to contact if something fails. Name one decision owner who can call a rollback, and confirm the on-call contacts for the database and the Plane application.

How to upgrade the PostgreSQL database step by step

This sequence moves the database behind Plane onto a supported PostgreSQL release with a verified backup, a rehearsed cutover, a checked Plane migration run and a retained rollback point.

  1. Confirm target PostgreSQL and Plane versions

    Check the Plane release you run against the PostgreSQL versions it supports, which the Plane documentation for your edition and version states, and compare that with the PostgreSQL support windows on the versioning policy page. Choose a target major version that is still in its support window for the whole period you plan to run it. Record the current Plane version, the current PostgreSQL version, the target version and the upgrade method your team will use. Done when a written decision names all four items and the owner who approved them.

  2. Stop Plane writes before backing up

    Put Plane into a maintenance state so no users or background jobs write to the database during the backup, for example by stopping the application and worker containers or scaling the Kubernetes deployments to zero. Confirm with your platform team that no scheduled jobs or integrations still write to the instance. Check that the database has no active connections from Plane components before you continue. Done when a connection query shows only administrative sessions and the freeze is logged with a timestamp.

  3. Take and verify a fresh backup

    Create a full logical dump of the database, using the dump method that matches your chosen upgrade path, and keep a copy of the configuration and environment values that point Plane at the database. Store the backup outside the database host, and confirm that the file is readable and complete by restoring it into a scratch PostgreSQL instance and running a basic row count on the main Plane tables. Done when the scratch restore succeeds and the checksum of the stored file is recorded.

  4. Run the upgrade method on a test copy

    Restore the verified backup into a separate PostgreSQL instance running the target major version, using the method your team selected from the PostgreSQL upgrade documentation. Keep the original database untouched. Record the exact commands, the PostgreSQL version reported after the restore, any warnings and the elapsed time of each stage so the production run can be planned from evidence. Done when the test copy starts cleanly and the server version query returns the target release.

  5. Point a test Plane instance at the upgraded database

    Start a separate Plane instance, using the same Plane version as production, with its database settings pointed at the upgraded test copy and its own Redis, RabbitMQ and object storage. Use a copy of the production configuration with hostnames and credentials changed for the test environment. Confirm that the web application loads and that a test user can sign in, which shows the connection and authentication settings work with the new PostgreSQL release. Done when the health endpoint reports healthy and login succeeds.

  6. Run Plane migrations and check results

    Run Plane's database migrations against the test instance as the Plane release documentation describes, and capture the output and any errors. Then check that core records behave as expected: create and edit a project, a work item, a cycle, a module and a page, and confirm that existing records display correctly. Compare row counts for key tables with the source database. Done when the migrations finish without errors, the counts match and the functional checks pass, with results written into the cutover record.

  7. Rehearse the production cutover

    Run the full production sequence once against a copy of production data: freeze writes, take the final backup, upgrade, start Plane, run migrations and execute the smoke checks. Time each step, note every manual action and write down the exact rollback commands. Confirm who can authorize rollback and how users will be told about the maintenance window. Done when the rehearsal ends with the same checks passing and the runbook has been corrected for any gap found.

  8. Perform the cutover and keep the old database

    Execute the approved runbook on production: freeze writes, take the final backup, complete the upgrade, run Plane migrations, start Plane and run the post-cutover health checks, including sign-in, a read of existing work items and a test write. Leave the original PostgreSQL instance stopped but intact, with its data and backup retained, as the rollback point for a retention period your change record defines. Done when the health checks pass, users confirm access and the rollback point is labeled and documented.

How to test Plane's migrations after the database moves

Plane applies its own schema migrations, so a PostgreSQL upgrade is not finished when the database starts. Plan a controlled run of Plane's migrations against a copy of production data before you touch production. The goal is to learn whether the application and its schema behave on the new database version while the pre-upgrade backup is still your fallback. Confirm the exact migration command and the job name for your deployment method in Plane's self-hosting documentation, since the Docker Compose and Kubernetes paths differ. Start from the Plane self-hosting overview and record the commands you used so the production run repeats them exactly.

Treat the test run as pass or fail against a short list. The migrations must finish without errors, and the migration output should be saved with the test record. After the migrations, the application containers should start and pass their health checks. Then exercise the functions users depend on: file uploads and downloads against your object storage, sign-in through your configured method, background jobs such as notifications or exports, and search. Each of these touches a different part of the stack, so a clean migration alone does not prove the instance works.

Review the PostgreSQL and application logs for new database warnings after the migrations and during the functional checks, and compare them with logs from the current production version. Any new warning about deprecated syntax, authentication, or configuration needs an owner and a decision before go-live. Keep the pre-upgrade backup until every check has passed on the production instance, not only on the copy, and until the post-upgrade backup job has run successfully on the new version. Discarding the backup early removes the only tested way back.

What makes a PostgreSQL upgrade for Plane take longer

This table lists the factors that stretch a PostgreSQL major upgrade behind Plane, why each one matters, and how to shrink it before the cutover window. Read it before you pick a method, because most of the effort comes from the environment around the database rather than the upgrade command itself.

DriverWhy it mattersHow to reduce it
Database sizeDump and restore time grows with data volume, and a large Plane database makes a full logical dump a longer outage. Confirm the current size on your own instance before choosing a method.Measure the database and attachments separately, clean up old data where your policy allows, and consider logical replication if the outage window is tight.
Bundled container or managed serviceThe bundled PostgreSQL container ships a 15.x image, so the upgrade path depends on where the database runs. A managed service has its own upgrade mechanism and version availability.Record the exact image tag or managed engine version first, then check the provider's major upgrade procedure and supported targets.
Extensions and custom objectsExtensions, custom functions, triggers or roles created outside Plane's migrations must exist on the new server and match the new major version. Missing objects surface only after restore.Inventory extensions and custom objects with catalog queries, confirm each is available for the target version, and script their recreation.
Availability needed during cutoverA dump and restore needs the application stopped to keep data consistent. Logical replication shortens the write freeze but adds setup and monitoring steps.Agree the acceptable write freeze with the business owner, then choose between dump and restore, pg_upgrade or logical replication against that limit.
Authentication method changesPostgreSQL 18 deprecates MD5 password authentication in favor of SCRAM. Connection strings, roles and password hashes may need changes before Plane's services can connect.Check pg_hba.conf and role password types on the source, plan SCRAM for every role, and test logins from each Plane service before cutover.
Standbys and replicationHot standbys and replicas must be rebuilt or re-pointed after a major upgrade, and a failover tool must be reconfigured to match the new primary.List every standby and replication slot, decide whether each is rebuilt from the new primary, and retire old slots to avoid disk growth.
Connection poolingPgBouncer or another pooler sits between Plane and PostgreSQL, so its database entries, auth file and pool settings must point at the new server and match its authentication method.Update pooler configuration in the same change window, then verify that Plane connections pass through the pooler and not directly to the old server.
Environments needing testsEach environment, including staging, a restored copy of production and any air-gapped or disaster recovery site, runs its own migration and needs its own checks.Run the full upgrade rehearsal on a restored copy first, then repeat the same steps in every other environment using the same runbook.

What buyers ask before hiring help with a PostgreSQL upgrade for Plane

What drives the cost of a PostgreSQL upgrade for Plane, and what should a quote include?

The main cost driver is how many moving parts the upgrade touches: the PostgreSQL version you start from, whether the database is the bundled container or a managed service, how large the data set is, how many environments need the change, and how much testing of Plane's migrations is in scope. A quote should list each of these as a separate line: discovery of the current setup, a rehearsal on a copy of production data, the cutover window, post-upgrade testing of Plane migrations, and rollback preparation. Ask whether the price is fixed for the written scope and what happens if discovery finds extra work. Costs are one-time for the upgrade itself, while backups, monitoring and future minor releases are recurring work your team or a retainer covers. DeployOpen does not publish a price list, so the quote follows from the written scope.

Can our own team upgrade the PostgreSQL database behind Plane without a partner?

Yes, if your team has staff who already run PostgreSQL in production and can follow the upgrade methods in the PostgreSQL documentation. The main options are a dump and restore, pg_upgrade, or logical replication, and each has different rollback and downtime behavior. The harder part is the Plane side: confirming the target version meets Plane's requirement, then running Plane's migrations against the upgraded database and checking the application behaves correctly. Teams that have not done this before often underestimate the testing and rollback planning. A partner is most useful when the database is critical, the change window is short, or no one on staff has done a major upgrade recently. Ask yourself whether you can staff a rehearsal and a rollback before deciding.

What does the work need from our staff?

Expect to provide four things: privileged database access for the people doing the work, agreed change windows, a copy of realistic test data, and a named person who signs off the result. Database access should be scoped to the PostgreSQL instance and the Plane database, with credentials handled through your normal secrets process. Change windows must be agreed with the teams that depend on Plane, because the cutover needs a stop of writes. Test data should be a recent copy taken from a non-production environment or sanitized where your data rules require it. Sign-off should cover both the database version and Plane's behavior after the migrations run. Ask the provider to list these inputs in the scope so your staff can plan their time before work starts.

How long does a PostgreSQL upgrade for Plane take, and what sets that time?

The duration depends on the database size, the upgrade method, how many environments need the change, and how much testing and rollback preparation is required. Dump and restore time grows with data volume, while pg_upgrade and logical replication change the amount of downtime rather than the amount of preparation. Testing Plane's migrations on a rehearsal copy usually takes longer than the database step itself, because it includes checking the application afterward. Ask for the schedule as separate phases with dependencies: discovery, rehearsal, cutover, verification and handover. If a provider gives a single number without asking about your data size and environments, ask what assumptions sit behind it. Timelines in a fixed-scope agreement should be written down before work starts.

Can the upgrade be done with little downtime?

It can, depending on the method and the platform around it. The PostgreSQL documentation states that logical replication works between different major versions and can allow a major upgrade with only several seconds of downtime. That approach needs careful setup, including replication configuration, monitoring of lag, and a tested switchover. A dump and restore is simpler but usually needs the database offline for the whole copy. pg_upgrade falls between the two, and PostgreSQL 18 added parallel jobs and a --swap option that affect its speed. The right choice depends on your data size, your tolerance for downtime and whether the database is managed. Ask the provider to show the downtime estimate from a rehearsal rather than from theory, and confirm what happens to in-flight writes during cutover.

What happens if the test shows Plane migrations fail after the database upgrade?

A failed migration in the rehearsal is the reason to run one, so the production cutover does not proceed until the cause is fixed. The first step is to capture the migration error, the Plane version, and the PostgreSQL version and settings, then decide whether the fix belongs to the database configuration, the Plane version, or an extension or setting that changed between releases. Keep the original database backup and the previous Plane images available so you can roll back to a known state. The scope should name who decides to go or no-go, how long a rollback takes, and how the cutover is repeated after a fix. Ask the provider how many rehearsal cycles are included in the quote and whether retesting after a fix is covered by the same price.

How DeployOpen scopes and delivers a Plane database upgrade

DeployOpen approaches a PostgreSQL upgrade behind Plane as a written, fixed-scope change to a database you run in your own infrastructure. We confirm the current version, the target release and the path (in-place, dump and restore, or logical replication), then test Plane's migrations against a copy before any production cutover.

How we scope

  • Confirm your current PostgreSQL version and whether it is within its support window before choosing a target.
  • Record whether Plane runs the bundled 15.x container or an external managed PostgreSQL instance, and which Plane edition and version it uses.
  • Agree in writing the target major version, the upgrade method, the downtime window and the rollback point.

How we build

  • Rehearse the dump and restore or logical replication path on a non-production copy of the database.
  • Run Plane's own migrations against the upgraded copy and check the application logs and core workflows afterward.
  • Document connection, authentication and backup settings changed by the upgrade, including any PgBouncer or managed service configuration.

How we hand over

  • Deliver a runbook with exact steps, verification queries, the rollback procedure and the owner for each step.
  • Provide test results showing which Plane migrations and functions were checked on the upgraded database.
  • Walk your platform and database teams through the cutover and the post-upgrade checks before the engagement closes.

How we support

  • Offer ongoing support and upgrades as a retainer if you want help with later PostgreSQL minor or major releases.
  • Retest after future Plane upgrades so that database changes stay tied to the application versions you run.
  • Ask any provider, including DeployOpen, to confirm how backups, restores and access to the database are handled in your environment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.