Skip to content

Add PostgreSQL backend scaffolding#428

Draft
adamziel wants to merge 125 commits into
WordPress:trunkfrom
adamziel:codex/postgresql-backend
Draft

Add PostgreSQL backend scaffolding#428
adamziel wants to merge 125 commits into
WordPress:trunkfrom
adamziel:codex/postgresql-backend

Conversation

@adamziel

@adamziel adamziel commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

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%

adamziel added 30 commits June 9, 2026 16:32
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.
adamziel added 30 commits June 14, 2026 00:36
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant