Problem/Motivation

Drupal requirements list the following PostgreSQL requirements currently:

Drupal 10 requires PostgreSQL 12.0 or higher with the pg_trgm extension

Decide on Drupal 11 requirements changes if any.

Database

  • 11 released October 2018 and EOL November, 2023
  • 12 released October 2019 and EOL November, 2024
  • 13 released September 2020 and EOL November, 2025
  • 14 released September 2021 and EOL November, 2026
  • 15 released September 2022 and EOL November, 2027
  • 16 released September 2023 and EOL November 2028

Proposed resolution

Require PostgreSQL 16 to have the maximum available features, and because it will be included in 2024's Debian and Ubuntu releases.

Remaining tasks

Discuss.

User interface changes

None.

API changes

TBD.

Data model changes

TBD.

Release notes snippet

TBD.

Comments

daffie created an issue. See original summary.

catch’s picture

Cross-linking the MySQL issue directly too.

gábor hojtsy’s picture

Title: [policy] Which PostgreSQL version to require for Drupal 11 » [11.x] [policy] Which PostgreSQL version to require for Drupal 11
Issue tags: +Major version only

Updating title, tags and version number based on recent announcement at https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-...

gábor hojtsy’s picture

Version: 11.0.x-dev » 11.x-dev
greenreaper’s picture

With the two year release cadence PG 15 makes sense:

Honestly PostgreSQL 16 would be a better match in terms of upstream timelines but obviously not for most distributions, and it is not clear that the changes are that significant from a development perspective. PostgreSQL 15 at least added MERGE and wider ICU collation support. Perhaps those coding the DB layer could chime in on features that might be important.

catch’s picture

PostgreSQL 16 was released in September 2023 and will be in Debian Trixie. Given the longer support cycle for Drupal 10 I think it would be fine to require that - it will be coming through in distributions next year around when we're releasing Drupal 11, even if it's not widespread now.

poker10’s picture

+1 to PostgreSQL 16, as it seems like it is going to be included in next major Debian and Ubuntu releases.

catch’s picture

Priority: Normal » Critical
Issue summary: View changes

Bumping to critical because we need to decide this six months before the June release window, which is soon.

greenreaper’s picture

It depends on whether we expect people to [be able to] upgrade to the latest available distro, or whether we want to work with PG from all distros that are still supported during part of the release period.

My experience is that sometimes you have a server and have to use it without potentially breaking other stuff by updating to a new version of a distro - especially if it's not your server to start with. But I'm not someone who installs lots of sites, and I imagine when you do that the process is to install a new OS too, perhaps by plonking it into a container. (It's also viable to install multiple versions of PostgreSQL on Drupal-derived distros, which isn't quite so easy for e.g. SQLite. But for RHEL/CentOS 7 and similar distributions this only works up to PostgreSQL 15.)

There's no doubt that PostgreSQL 16 has many improvements but few of them seem to relate to programming features - is the use of syntax such as JSON_ARRAY(), JSON_ARRAYAGG(), and IS JSON beneficial enough to say "you can't install without PG 16"? I didn't hear people speaking up when I asked about features.

As I said before, PG 16 matches the Drupal support lifetime better. I'm using it now on Drupal Bookworm using PostgreSQL's APT repo. I just want us to be clear that the cost is that in some cases Drupal 11 won't be usable with PostgreSQL on a still-supported system without being able to upgrade the OS or add a new repo and binaries for PG 16.

daffie’s picture

Status: Active » Reviewed & tested by the community

+1 for PostgreSQL 16

catch’s picture

Title: [11.x] [policy] Which PostgreSQL version to require for Drupal 11 » [11.x] [policy] Require PostgreSQL 16 for Drupal 11

Re-titling so it's easier to see what the proposed resolution is now that there is one.

quietone’s picture

I doubled checked the Debian and Ubuntu release schedules and I agree with PostgreSQL 16.

quietone’s picture

Status: Reviewed & tested by the community » Fixed

I have updated Database server requirements and I see that there is already a Postgresql 16.0 test container, added in #3240346: Add Postgresql 15.4/16.0 to CI.

gábor hojtsy’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

xjm’s picture

Status: Closed (fixed) » Needs work
Issue tags: +Needs change record

This needs a CR. There can be a single CR for all the D11 DB requirements.

quietone’s picture

Status: Needs work » Needs review
Issue tags: -Needs change record

Change record added.

daffie’s picture

Status: Needs review » Fixed

The change record looks good to me.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

quietone’s picture

Version: 11.x-dev » 11.0.x-dev