-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: Drupal compatibility with CockroachDB #22211
Comments
cc @awoods187 for prioritization |
Issue #19472 was closed but we do not know if that was sufficient to enable compatibility. |
Just spun up Drupal and Cockroach, currently the install fails as a consequence of #20782 |
Building from git on OSX and in Docker (using the builder image) didn't work out for me. Once there's an unstable docker image with this change in it, I can easily try again. |
Ironed out OSX build from git (had to use @jchristi The bytea session variable seems to work, but Drupal sees it set to There is also a message regarding detecting encoding - "Drupal could not determine the encoding of the database was set to UTF-8", which is the result of Further, it makes a call to |
Thank you for trying it out! I have filed the related issues:
We also have a previous issue for pg_advisory_lock:
@lotyrin can you detail how Drupal uses |
@knz No problem! Re: |
Drupal, when initializing a schema for use, adds a couple compatibility shim functions. Drupal.org was experiencing test failures due to race conditions within Postgres' implementation of Call to pg_advisory_lock() If cockroach supports atomic |
what are these compatibility shim functions that drupal needs to add? Is this limited to the two functions |
Yep, just those two. Drupal shouldn't be creating any functions other than those, and it does check if they exist before trying to create them. |
Modifying Drupal to skip these checks / functions and proceed further into in the installation, the next issue is that it checks the variable If I skip that, I get an error about If I skip that, it tries to use All in all, Drupal's pgsql driver seems to be fairly heavily invested in PostgreSQL implementation detail. |
Everything you've mentioned so far except for the last point we were planning to work on anyway.
What does Drupal do with savepoints?
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
The use of It seems other RDBMS they support allowed continued use of a transaction in the case that queries have failed, but Postgres does not, so they wrap every query with a savepoint to emulate the behavior. |
Thank you heartily for performing this investigation. This gives us a lot to chew on, but at least now we understand the task at hand.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
So Drupal is a very popular open source CMS which is used to power many public web sites.
Currently Drupal does not work with CockroachDB.
At least one issue is the following: sql: Support 'COMMENT ON TABLE foo is 'bar' #19472
Jira issue: CRDB-5870
The text was updated successfully, but these errors were encountered: