Closed (fixed)
Project:
Drupal core
Version:
11.0.x-dev
Component:
postgresql db driver
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 May 2023 at 09:23 UTC
Updated:
30 Jun 2025 at 04:28 UTC
Jump to comment: Most recent
Comments
Comment #2
catchCross-linking the MySQL issue directly too.
Comment #3
gábor hojtsyUpdating title, tags and version number based on recent announcement at https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-...
Comment #4
gábor hojtsyComment #5
greenreaperWith 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.
Comment #6
catchPostgreSQL 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.
Comment #7
poker10 commented+1 to PostgreSQL 16, as it seems like it is going to be included in next major Debian and Ubuntu releases.
Comment #8
catchBumping to critical because we need to decide this six months before the June release window, which is soon.
Comment #9
greenreaperIt 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.
Comment #10
daffie commented+1 for PostgreSQL 16
Comment #11
catchRe-titling so it's easier to see what the proposed resolution is now that there is one.
Comment #12
quietone commentedI doubled checked the Debian and Ubuntu release schedules and I agree with PostgreSQL 16.
Comment #13
quietone commentedI 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.
Comment #14
gábor hojtsyI opened #3421175: Update INSTALL.txt and hook_requirements() etc. with remaining Drupal 11 platform requirements to do when 11.x is ready for it.
Comment #16
xjmThis needs a CR. There can be a single CR for all the D11 DB requirements.
Comment #17
quietone commentedChange record added.
Comment #18
daffie commentedThe change record looks good to me.
Comment #20
quietone commented