Add PostgreSQL backend scaffolding#428
Draft
adamziel wants to merge 125 commits into
Draft
Conversation
Snapshot captured at 2026-06-09 19:58:20 UTC.
Snapshot captured at 2026-06-09 19:59:24 UTC.
Snapshot captured at 2026-06-09 20:01:29 UTC.
Snapshot captured at 2026-06-09 20:02:33 UTC.
Snapshot captured at 2026-06-09 20:03:37 UTC.
Snapshot captured at 2026-06-09 20:04:41 UTC.
Full unfiltered PostgreSQL WordPress PHPUnit now passes locally in about 19 minutes. Use PostgreSQL setup and wrapper shortcuts, metadata and introspection caching, and shared-read savepoint reuse while preserving error isolation. Quick benchmark baseline is available under /tmp/cao-logs/sqlite-database-integration/full-suite-runtime-optimization-701531c/quick-benchmark-prepare-revision/.
Support MySQL SHOW COLLATION and SHOW DATABASES/SCHEMAS in the PostgreSQL driver using tokenized statement parsing and static MySQL-shaped result rows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds PostgreSQL backend support to the SQLite Database Integration test infrastructure and makes the full WordPress PHPUnit suite practical to run in CI.
Passes the full WordPress unit test suite.
Validation
This was validated with package-level PostgreSQL PHPUnit coverage, focused WordPress PostgreSQL regressions, repeated full unfiltered local WordPress PostgreSQL runs, code review on the performance-sensitive paths, and final hosted GitHub Actions verification.
WordPress PHPUnit: SQLite 24,648 passed; PostgreSQL 24,628 passed
[####################] 100%