Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
postgresql db driver
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Dec 2020 at 15:55 UTC
Updated:
23 Mar 2023 at 17:48 UTC
Jump to comment: Most recent
Comments
Comment #2
daffie commentedComment #3
daffie commentedComment #4
daffie commentedComment #5
catchThis seems like an oversight from the previous issue, not sure we need an explicit policy issue for this one - but untagging for release manger review. I think we could update the existing change record.
Comment #6
gábor hojtsyThis does indeed sound like an oversight. If its not created, it sounds like Drupal cannot use it, so its not really required. Do we need additional code checks or a policy fix only?
Comment #7
gábor hojtsyComment #8
daffie commentedThe problem is that we cannot create the extension from Drupal. It must be done on the database by a superuser account. Which is hopefully not the account used by Drupal. We need add a hook_requirements() to test if the extension is created. My idea was to first get the policy change in and then do the patch. For the patch to work the testbot needs an update and for that @mixologic needs to policy change accepted. See: #3186676: Create the pg_trgm extension on PostgreSQL 10.12 and 12.1 database environments.
Comment #9
gábor hojtsy#3186676: Create the pg_trgm extension on PostgreSQL 10.12 and 12.1 database environments is fixed. I think adding the hook_requirements() in Drupal 9 would be the next step. Do we expect that anyone will get bit by that? Maybe we add it as a warning in Drupal 9 and error in Drupal 10 if we think people will get problems by the sudden enforcement of our requirements?
Comment #10
daffie commentedYou had the same idea as me. The child 2 issues are created. See #3214921: Add a requirements warning in Drupal 9 when PostgreSQL is used and the pg_trgm extension is not created and #3214922: Add a requirements error in Drupal 10 when PostgreSQL is used and the pg_trgm extension is not installed or created.
@Gabor: Is there more that needs to be done for now for this issue?
Comment #11
gábor hojtsyNo, it sounds like the policy is set. We have the implementation issues. Re-parented the implementation issues so they can be found in the proper lifecycle points. Closing this.
Comment #12
gábor hojtsyComment #13
andypostChange record is not published for reason?
Comment #15
meyertox commentedWhat is the purpose of the pg_trgm extension in drupal9? Our database hoster does not support extensions, so the continuation of our drupal hosting ist threatened....
Comment #16
jweowu commentedmeyertox: Refer to #2988018: [PP-1] Performance issues with path alias generated queries on PostgreSQL for the motivation behind these changes.
Adding pg_trgm will not be a requirement for any Drupal 9 release, but it will be required to use Postgres with Drupal 10.
Comment #17
m.stentaI opened a follow-up to consider automatically installing
pg_trgmin PostgreSQL 13+ databases, where it is considered a "trusted extension" and does not require superadmin privileges to install: #3349973: Automatically install pg_trgm extension on PostgreSQL 13+