Open edX on PostgreSQL

Running a new Open edX installation on PostgreSQL through the community Tutor plugin introduced in Verawood, with a clear view of who it suits, its fresh-install-only limit and the stability caveats to clear before production.

On this page

Open edX on PostgreSQL: when a new installation should use it

A team starting a new Open edX installation that wants PostgreSQL instead of the default MySQL stack can do this with the community Tutor plugin introduced in Verawood, but only for fresh installs. The plugin cannot convert a platform that already runs on MySQL, so the database choice has to be made before the first deployment, while the platform holds no learner or course data. The edx-platform development requirements list MySQL 8.0, MongoDB 7.x and Memcached, and multi-node deployments need a shared Django cache such as Redis or Memcached. That list is the default path, so every PostgreSQL deployment departs from the configuration the core project develops against. Confirm the plugin's current status and supported combinations in the Tutor documentation.

PostgreSQL is the reason some operators look at this path. It is released under the PostgreSQL License, a liberal open source license similar to the BSD or MIT licenses, and the project ships a new major version about once a year. Minor releases arrive at least once every three months, and each major version is supported for five years after its initial release. Supported windows currently run from version 14, which is supported to November 12, 2026, through version 18, which is supported to November 14, 2030. A new installation should choose a major version whose window covers the expected life of the platform, and the team should confirm which PostgreSQL major version the plugin targets against the PostgreSQL versioning policy.

The plugin's maturity matters as much as the licence. The core project's listed development stack is MySQL, and the edx-platform maintainers recommend running Open edX through a service provider or with Tutor, so a community database plugin sits outside the path the core project develops and tests against. Verawood is the current named release, and Open edX supports only the latest named release at a time, so each later upgrade must re-test the PostgreSQL configuration. Before approving the choice, ask the plugin maintainers which Open edX releases and PostgreSQL major versions they test, who fixes breaking changes, and what the team's rollback plan is if an upgrade fails on PostgreSQL.

Which teams benefit from PostgreSQL and which should stay on the default

Choosing PostgreSQL for a new Open edX installation is a decision about who will operate the database for years, not only about the engine itself. The profiles below separate teams that gain from it from teams that should keep the default path. Existing installations cannot switch, so the check should happen before the first install.

Teams with PostgreSQL operations skills

Your database engineers already run PostgreSQL in production, with tested backups, monitoring and a routine for minor updates. Open edX then adds one more PostgreSQL estate to a team that knows its failure modes. Check that the same people will own the Open edX database after launch, and that your backup tooling already covers point-in-time recovery for it.

Support per major version
5 years
Archiving and recovery docs

Teams standardizing on one engine

Your organization already runs most services on PostgreSQL, so a single engine means one set of backup jobs, upgrade calendars, access reviews and monitoring dashboards. The gain is operational consistency rather than any feature of Open edX. Confirm that the Open edX configuration on PostgreSQL is covered by the same support process you apply to your other services.

Teams that need upstream parity

If your team depends on following the upstream Open edX release path closely, keep the default database unless you have verified that the PostgreSQL route matches your target release. Upstream documentation, community examples and troubleshooting threads assume the default stack. Ask your implementation partner which release you will run and how its database behavior is tested.

Teams with a migration already planned

A platform that will move between database engines later doubles the work: data export, verification and a second cutover. Teams planning such a move should decide the engine once, record the reason and test the migration path in a non-production environment first. Ask whether the migration is in the current plan or only an idea, since that answer changes the risk.

Teams without database operations capacity

If nobody on the team can own database backups, restores, pooling and failover, the default path keeps the database work closer to what community examples cover. PostgreSQL offers hot standby and replication, but PostgreSQL does not detect a primary failure and notify the standby, so automatic failover needs external tools that someone must select and run. Treat this as a staffing question before a technical one.

Failover docs

Teams with an existing installation

An installation already running on the default database cannot switch to PostgreSQL in place. Teams in this position should treat the question as a new platform decision, not a configuration change, and plan any move as a migration project. Confirm your current database, its version and its recovery tests before deciding anything else.

Database choices for a new Open edX installation

This table compares the default MySQL path with the community PostgreSQL plugin for a new Open edX installation. Read each row as a decision factor, then confirm the plugin's current status with the Tutor documentation and the plugin maintainers before you commit. The main takeaway is that PostgreSQL is a fresh-install choice that needs its own verification plan.

Decision factorMySQL (default Tutor path)PostgreSQL (community plugin)
Support modelDefault database path in Tutor, and the database the platform's development setup usesCommunity plugin; confirm current maintainer and support status with the plugin maintainers
Fit with existing operationsSuits teams already running MySQL 8.0 backups, monitoring and on-call skillsSuits teams already running PostgreSQL with tested backup, replication and recovery tooling
Fresh-install requirementAvailable for new installations and for existing sites that stay on MySQLLimited to new installations; existing MySQL sites cannot switch through the plugin
Upgrade and migrationFollows the standard Tutor upgrade path for each named Open edX releaseMoving existing data between engines is a separate migration project, planned and costed on its own
PostgreSQL version choiceNot applicable; use the MySQL version the chosen Open edX release documentsPick a major version still in support; PostgreSQL 14 support ends November 12, 2026
Availability and failoverReplication and failover set by your existing database tooling and runbooksHot standby and point-in-time recovery are available, but automatic failover needs external tools
Authentication setupStandard database user and password management under your existing policyConfirm SCRAM password authentication is used, since PostgreSQL 18 deprecates MD5 passwords
Verification before go-liveSmoke tests across LMS and Studio, plus a tested backup restoreRestore drill, course authoring, email, analytics, and a rehearsed Tutor upgrade on the same engine

Why the fresh-install-only limit changes the planning

The Tutor PostgreSQL plugin supports new installations only, so the database choice has to be made before the first deployment, not after. An existing Open edX platform running on MySQL cannot be moved onto PostgreSQL through this route. Any later change of database engine becomes a data migration project in its own right, with its own scope, test cycles, cutover window and rollback plan. Teams should confirm the current plugin documentation in the Tutor documentation before they commit, since plugin behavior is the deciding fact here, and record the answer in the architecture decision.

The planning consequence is easier to see against the Open edX support position. The project states that the latest named release is the only supported release and that it cannot support more than one release at a time. Verawood is the current named release, published on 30 July 2026, and Willow and Xylon are listed for December 2026 and June 2027. Each upgrade will therefore carry the database choice forward into a new release. A team that starts on PostgreSQL today should expect the upgrade runbook for each release to be written and tested against PostgreSQL, while a team that starts on MySQL inherits the same obligation for MySQL. The database decision is made once and then carried through every upgrade.

How to set up a fresh Open edX installation on PostgreSQL

This sequence takes a new Open edX platform from a confirmed release and plugin version to a tested PostgreSQL deployment with backups, login and course checks, and a rehearsed rollback path. Each step closes with a check that the team can record before moving on.

  1. Confirm the Verawood target and Tutor compatibility

    The platform owner confirms that Verawood, the current named release, is the target, because Open edX supports only the latest named release. The engineer then checks that the Tutor version pinned for the install supports Verawood and the community PostgreSQL plugin. They also confirm the PostgreSQL major version against the support window, since PostgreSQL 18 is supported until November 14, 2030. The step is complete when the release, Tutor version, plugin version and PostgreSQL major version are written in the install record and approved by the platform owner.

  2. Install the community PostgreSQL plugin from source

    The engineer installs the community Tutor plugin that adds PostgreSQL support from its published source repository and pins it to a tagged version so rebuilds stay repeatable. Because the plugin is community maintained, the security team reviews its license, maintainers and open issues before it enters the build. The step is complete when the plugin appears in the enabled plugin list and the rendered configuration shows the PostgreSQL database settings instead of the MySQL defaults.

  3. Set database credentials and network placement

    The database administrator creates a dedicated PostgreSQL role for each Open edX service, stores the passwords in the organization's secrets manager, and sets password authentication to SCRAM. The network engineer places the database on a private subnet and limits client access in pg_hba.conf to the application hosts. If connection pooling is planned, PgBouncer sits between the services and the database. The step is complete when the application host connects with its service role, and connections from other hosts or with a wrong password are refused.

  4. Run a test deployment outside production

    The engineer runs the full install in a non-production environment built with the same network layout, secrets handling and PostgreSQL version as production. They watch the database migrations for errors and note any warnings that mention PostgreSQL. This test shows whether the fresh-install path works in the team's environment. The step is complete when all services report healthy, the migrations finish without errors, and the team has a written list of any warnings with an owner for each.

  5. Verify LMS and Studio login and course workflows

    The QA lead creates a staff account and a learner account, then signs in to Studio and the LMS with each. The author creates a course, adds a unit with a video and a file upload, publishes it, and opens it as the learner. The team checks that the uploaded media loads from the configured storage. The step is complete when sign-in works for both roles, the course publishes, the learner can open the content, and the media loads without errors in the browser console or logs.

  6. Configure backups with point-in-time recovery

    The database administrator enables WAL archiving and base backups as described in PostgreSQL's continuous archiving documentation, and stores the archives away from the primary host. The team also backs up the Open edX media storage, since a database backup alone does not hold uploaded files. PostgreSQL does not detect a failed primary or promote a standby by itself, so the team records whether an external failover tool is in scope. The step is complete when a restore to a separate host returns the database to a chosen timestamp and the restored course content matches the source.

  7. Record and rehearse the rollback path

    The platform owner writes the rollback steps before go-live, covering how to take a snapshot, how to switch traffic back to the previous endpoint, and who makes the call to roll back. The team rehearses the steps in the test environment, including restoring the database from the most recent backup. The step is complete when the rehearsal restores the platform to a known state, the steps are stored with the install record, and the owner has signed off on them.

How the PostgreSQL plugin fits into the Tutor stack

The diagram starts at the public proxy, which hands requests to the LMS and Studio on the application network. Both services reach the cache, Celery workers and the database, and PostgreSQL can be reached through an optional PgBouncer pooler on the database network. The backup and replica paths are planned components to confirm with your own design and the Tutor plugin documentation before you treat them as available. Check that the database port is reachable only from the application network.

Tutor-managed services, trust zones and the planned database paths.

Stability caveats to clear before production use

Running Open edX on PostgreSQL is a newer path than the MySQL default, so each caveat below is a question to settle before go-live. Together they cover who owns the plugin, where feature coverage may differ, what has not been tested, and how the database behaves under failure, peak load and future upgrades. Confirm each one with the plugin maintainers and with your own load and failover tests.

Community plugin ownership and fixes

The PostgreSQL backend arrives as a community Tutor plugin, not as a core-supported path with a stated maintenance commitment. Ask the plugin maintainers who triages PostgreSQL issues, how quickly security and data-integrity fixes are merged, and whether they will back a fix for your release. Record the answers in your support agreement, because a fix you need may depend on a volunteer or on your own patch.

edx-platform repository

No parity guarantee with MySQL

No stated guarantee says every Open edX feature behaves the same on PostgreSQL as on the MySQL path. Build a feature inventory for your platform, covering the LMS, Studio, plugins and any custom XBlocks, and test each one on PostgreSQL. Treat any feature without a clean test result as unsupported for your launch until the maintainers or your own fix confirm it works.

Untested reporting and analytics pipelines

Reports, grade exports, instructor tools and the analytics path are the areas most likely to contain database-specific queries that were never exercised on PostgreSQL. Run your course team reports, grade downloads and any Aspects or xAPI forwarding against a realistic copy of your data. Compare the output with the MySQL baseline row by row before you rely on it for decisions or compliance records.

Tested failover for the primary database

PostgreSQL supports hot standby servers and both synchronous and asynchronous replication, but it does not detect a failed primary or notify the standby on its own. You need an external tool or operator to decide when to promote, and that promotion path must be rehearsed. Test a planned and an unplanned failover, confirm how the Open edX services reconnect, and measure the data lost in an asynchronous setup.

PostgreSQL failover docs

Connection pooling under learner peaks

Open edX services open many database connections, and exam windows or course launches can multiply them quickly. PgBouncer or a similar pooler can hold client connections while limiting server connections, but its pooling mode affects which session features the application can rely on. Load test your peak learner count with the pooler in place, check that connection limits hold, and confirm that the chosen mode is compatible with the Open edX application code you run.

PgBouncer documentation

Upgrades on future named releases

Open edX supports only the latest named release, and the next releases are Willow and Xylon. Ask the plugin maintainers whether PostgreSQL support is planned for each future release and whether it is tested against that release before the upstream upgrade ships. Plan a rehearsal of each upgrade on a copy of production, and budget for the chance that the backend lags the core release and delays your upgrade window.

Open edX release notes

Operating PostgreSQL under Open edX: upgrades, replication and recovery

Running PostgreSQL under Open edX means treating the database as its own operational service with three separate routines: minor updates, major upgrades and recovery. A minor release never changes the internal storage format, so applying one means replacing the executables and restarting the server, which keeps the data directory untouched. Major upgrades are different. The supported routes are dump and restore with pg_dumpall, pg_upgrade, or logical replication. Logical replication works across major versions and, according to the PostgreSQL upgrading documentation, can limit downtime to several seconds, but it requires a rehearsed cutover and a check that the Open edX application's schema and queries behave the same on the new version. Choose the target major version against the support window in the PostgreSQL versioning policy, and schedule the next major upgrade before the current one leaves support, not after.

For replication, PostgreSQL supports hot standby servers that answer read-only queries, and it offers both synchronous replication, where a commit waits until standbys confirm it, and asynchronous replication, where it does not. Synchronous replication protects committed enrollment, grade and certificate writes from loss on failover but adds latency to every commit, while asynchronous replication keeps writes fast and accepts that the most recent transactions may be lost. Decide which of those trade-offs your learner data can tolerate before you configure either mode. PostgreSQL does not detect a failed primary or promote a standby by itself, so automatic failover needs external tooling, and that tooling, along with its fencing rules and the connection path the Open edX services use, must be tested as part of the build.

Continuous archiving and point-in-time recovery complement replication, because a standby copies mistakes as faithfully as correct data. Archive the write-ahead log, take base backups on a schedule, and restore to a chosen moment before an accidental deletion or a bad migration. The restore procedure is the part most often left untested. Confirm the recovery time and data-loss window with your operators, then run a restore into a separate environment and check that the Open edX LMS and Studio start and show the expected courses and enrollments. Record who may start a recovery and where the archive is kept, since both affect how quickly you can respond.

Security and access considerations for the database tier

The database tier holds every learner account, enrollment and grade that the Open edX services read and write, so its access rules matter as much as the platform's own. The cards below cover how the database authenticates clients, which roles each service gets, how traffic reaches it, and how secrets and logs are handled. Platform access controls and single sign-on are configured separately and are not covered here.

Choose an authentication method

PostgreSQL offers password, GSSAPI, SSPI, LDAP, RADIUS, certificate, PAM and OAuth methods. For password logins, use SCRAM-SHA-256 and avoid MD5, which PostgreSQL 18 deprecates. Certificate authentication suits service-to-service connections where your team can rotate client certificates reliably. Confirm which methods your Tutor-managed containers and your database host can support before you fix the choice in pg_hba.conf.

PostgreSQL auth methods

Use **least-privilege** service roles

Give the LMS, Studio and Celery workers their own database roles rather than one shared superuser. Each role should own only the schemas it needs, and migration credentials should be separate from runtime credentials so routine restarts cannot alter schema. Ask the vendor-independent question for each service: which tables does it write, and which can it only read? Record the answer so reviews can compare grants against it.

Isolate the database network

Place PostgreSQL on a private network segment that only the application hosts and the connection pooler can reach. Restrict port access with firewall rules and host-based authentication entries that name specific source addresses, not whole subnets. If you use PgBouncer, keep it inside the same segment so learners and operators never connect to the database directly.

PgBouncer project

Encrypt connections in transit

Require TLS for every connection between Open edX services, the pooler and PostgreSQL, and reject plaintext connections in host-based authentication rules. Decide how the server certificate is issued and which certificate authority the clients trust, and plan renewal before expiry. Verify the setting by checking that each service connects with TLS enabled, not by assuming the default.

Keep Tutor secrets out of plain config

Tutor stores generated and user-supplied values in its configuration files, including database passwords. Keep those files out of version control, restrict file permissions to the operator account, and inject passwords from a secrets store where your organization has one. Rotate database credentials on a schedule and after any staff change, and confirm that backup archives do not carry plaintext secrets unless they are encrypted.

Enable audit logging on the database

Turn on PostgreSQL connection and disconnection logging, and log failed authentication attempts so that access problems appear in your central log system. Decide how long logs are kept and who can read them, since they may contain usernames and query metadata. Platform-level activity is logged separately by Open edX, so check that both sources are collected and that neither depends on the other.

Questions teams ask before running Open edX on PostgreSQL

Can an existing MySQL-based Open edX installation switch to PostgreSQL?

Not with the community Tutor plugin as it is described for Verawood, because it applies to new installations only. A platform already running on MySQL cannot be converted in place with it. Moving to PostgreSQL means building a fresh installation and then migrating course content and learner data into it, which is separate work with its own testing, cutover and rollback planning. Before you commit to that path, ask the plugin maintainers in writing whether a supported migration route exists for your release, and ask your implementation partner to estimate that migration on its own line of the scope.

What does our internal team need to provide for this work?

The team needs to supply the people who make decisions and run the platform afterward. In practice that means:

  • Linux and container operations skills for the servers, Docker or Kubernetes, and the proxy and DNS setup around Tutor.
  • PostgreSQL administration skills, covering backups, point-in-time recovery, role management and planned major upgrades.
  • A named owner for the platform version, the plugin version and the upgrade calendar.
  • Course authors or administrators who can test real course flows, grading and enrollment before launch.
  • Access to the cloud accounts, data centers or private networks where the platform will run.

If one of these skills is missing, that gap is usually the first cost to close, either by training or by contracting it.

What drives the effort and cost of running Open edX on PostgreSQL?

Cost has two parts: the one-time build and the recurring operation. The one-time build covers installation, configuration, SSO and integration work, data validation, load and failure testing, and documentation. Recurring cost covers patching, Open edX upgrades, PostgreSQL updates and monitoring. The PostgreSQL project releases minor updates at least once every three months, and each major version receives support for five years, so a recurring maintenance calendar is required. Testing scope is the largest variable: a single site with a small course catalog needs less verification than a multi-site platform with high availability and tested recovery. Ask any quote to show the build and the operation separately, with the testing scope and the number of environments stated.

Can our team set this up and run it without an outside partner?

A capable team can, provided it has the skills listed in the staffing question and enough time to test before launch. The main risk is not the first installation but the operating years that follow: the team must absorb each Open edX release, each PostgreSQL minor update and each major version change, and it must test restores regularly. Teams that choose to do it alone should write down who owns each of these tasks, set aside test environments for upgrades, and agree how they will find help when a plugin or upgrade fails. A partner can take on the build, the testing, or a recurring support retainer, and the split should be written into the scope before work starts.

How long does running Open edX on PostgreSQL take to set up?

The supplied research does not give a duration for this work, so no timeline can be promised here. The schedule depends on the scope: whether the installation is new or a replacement for a running platform, how many environments are needed, how many integrations and identity providers are connected, whether high availability and point-in-time recovery must be proven, and how much course content must be tested. Ask for a written scope with a milestone plan, the testing steps each milestone includes, and the client decisions that the plan depends on, such as domain names, identity provider access and sign-off owners.

Does Edly support the PostgreSQL plugin for Tutor?

Edly maintains Tutor and offers professional support for it. The PostgreSQL option is a community plugin, and the research supplied for this page does not show that Edly's professional support covers it. Treat that as an open question and confirm it in writing with Edly and with the plugin's maintainers before you decide. Ask which Tutor and Open edX versions the plugin is tested against, how fixes are released, who answers security issues, and what happens to the installation if the plugin falls behind a new Open edX release.

How do we choose between PostgreSQL and the default MySQL path?

Choose PostgreSQL when your organization has a standard for it, your team already runs it well, and you accept that a community plugin with a fresh-install-only limit is part of your risk. Choose the default path when you want the most widely used configuration, when your team already operates MySQL, or when you cannot accept the stability caveats before production. The edx-platform repository lists MySQL 8.0 among its development requirements, so the default route is the one most closely tracked by the core project. Put the decision to a short written test: which path your operators can support for the next several years, and which path your upgrade calendar can absorb.

Which PostgreSQL version should a new Open edX installation target?

Target a version whose support window covers the years you expect to run the platform, and confirm that the plugin supports that version. The PostgreSQL project lists version 18 with final support on November 14, 2030, version 17 to November 8, 2029, version 16 to November 9, 2028, version 15 to November 11, 2027, and version 14 to November 12, 2026. Versions 13 and earlier are no longer supported. A version that ends support within a year of launch will need a major upgrade soon, which adds planned downtime, testing and a rollback path to the first year of operation. Check the PostgreSQL versioning policy for the current list before you choose.

What drives the cost and effort of a PostgreSQL build

The largest one-time cost is the design and build of the database layer, and it grows with the number of decisions still open when work starts. A PostgreSQL build for Open edX covers the Tutor plugin configuration for a fresh install, connection pooling with PgBouncer, continuous archiving for point-in-time recovery, and the replication topology. Each of these needs a written design, then a build, then test and load verification against realistic learner traffic. Load testing and restore drills are where teams often underestimate effort, because they must be repeated after every significant change to the stack, not only once before launch.

Several factors move cost up or down. The number of environments matters most, since each one needs its own configuration, secrets and restore tests. Required availability is the next driver: hot standbys and synchronous replication add design and test work, and PostgreSQL does not detect a failed primary or promote a standby on its own, so an external failover tool adds both build effort and a component to operate. Existing PostgreSQL skills in your team shorten the build and reduce the risk of handover gaps. Integration scope also matters, because any reporting tool or outside system that reads the LMS database directly adds access design, testing and ongoing maintenance.

Recurring costs sit in operations. Minor PostgreSQL releases arrive at least every three months and are applied by replacing executables and restarting, while major upgrades need a planned method such as dump and restore, pg_upgrade or logical replication. Confirm which major version the build targets, since version 14 is supported only until November 12, 2026. When requesting a quote, ask for a written list of environments, the availability target, the named failover tool, the restore test frequency, who applies patches and upgrades, how the Tutor and Open edX versions are pinned, and the support hours and response commitments. A quote without these items cannot be compared with your own estimate.

How DeployOpen scopes and delivers PostgreSQL-backed Open edX

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Open edX installations built with Tutor. For a PostgreSQL-backed build, we start from a written scope that states the database decision, its fresh-install limit and the operating model your team will own.

How we scope

  • Confirm the Open edX release, Tutor version and whether this is a fresh install, since the PostgreSQL plugin applies only to new installations.
  • Record the PostgreSQL version, hosting model, backup and recovery targets, and who owns database operations after handover.
  • Agree in writing which high availability, pooling and replication features are in scope, and which are deferred to a later phase.

How we build

  • Deploy the PostgreSQL plugin on a staging Tutor environment first, then verify the LMS and Studio start cleanly against the new database.
  • Configure connection pooling, database roles, authentication method and network access according to your security baseline.
  • Test backups and a restore in a non-production environment, and record the time each step took so your team can repeat it.

How we hand over

  • Deliver the written configuration, Tutor plugin settings, database role model and runbooks covering backups, restores and minor updates.
  • Document the decision record that explains why MySQL or PostgreSQL was chosen, including the known stability caveats and their owners.
  • Walk your platform, database and security teams through the operating procedures and the upgrade path for future major releases.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, scoped to the PostgreSQL and Open edX versions you run.
  • Review minor PostgreSQL updates and Tutor changes before they reach production, and test them against your own configuration.
  • Plan major PostgreSQL upgrades as separate work, with a rehearsal and rollback plan agreed before the cutover date is set.

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.