Skip to content

Delete unused Postgres support (SQLite is the only store) - #5333

Merged
joelteply merged 2 commits into
canaryfrom
fable/remove-postgres
Oct 23, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fable/remove-postgres

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel, 2026-10-23: "We don't even use Postgres anymore." Dead code deleted; SQLite through the kernel ORM is the only store.

Removed (79 added, 3001 deleted, 28 files)

  • core/continuum-kernel/src/orm/postgres.rs and orm/postgres/* (adapter, where-clause builder, conditional, ensure_table_exists_pg, format_pg_error, tests): about 2,600 lines, plus the PostgresAdapter export and doc mentions in orm.
  • deadpool-postgres / tokio-postgres from the workspace, kernel and core Cargo.toml; unused rusqlite 0.32 from continuum-core (no use in its src; the kernel owns it).
  • Cargo.lock hand-edited: dropped deadpool, deadpool-postgres, deadpool-runtime, tokio-postgres, postgres-protocol, postgres-types, fallible-iterator 0.2, phf/phf_shared 0.13, whoami 2.1, wasite, wasi 0.14, objc2-system-configuration 0.3; version qualifiers rewritten where a name became unique. Checked for dangling refs by script; --locked in CI is the real check.
  • CI (continuum-rust-tests.yml): the DATABASE_URL: postgres:// env, the "Start the runner's PostgreSQL" step, and the "cargo test -p continuum-kernel --lib (Postgres, --ignored)" step. Two later comments still say "Postgres" (left to keep the diff separable from the ci-by-crate rewrite).
  • docker-compose.yml: the opt-in postgres service and pgdata volume.
  • tools/scripts/install.sh: the PostgreSQL install step and the DATABASE_URL=postgres:// write into config.env (would now fail loudly on fresh installs); steps renumbered /8. Comments in install.sh, and the Postgres validation item in docs/CONTAINER-PATH-LINUX-VALIDATION.md.

Loud error

modules/data/adapters.rs::reject_unsupported_backend runs before the adapter cache: any postgres:// or postgresql:// connection string (for example a stale DATABASE_URL) returns Postgres is no longer supported ... unset DATABASE_URL or point it at a SQLite file path. No fallback. New test postgres_connection_strings_are_rejected; existing tests that used postgres URLs as opaque strings now use sqlite paths.

Left on purpose

tools/scripts/uninstall.sh still offers to drop a legacy continuum database; the WSL2 install report is a historical test log; epoch_watermark/concurrency/role_template comments mention Postgres as a numeric/JSON semantic reference.

Verification

No local compile (the M5 is serving). CI compiles and tests this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…only store

postgres:// connection strings now fail loudly in the data module instead of reaching an adapter.
Removes the adapter, deadpool-postgres/tokio-postgres deps (and Cargo.lock entries), CI Postgres steps,
the compose postgres service, and the installer's Postgres setup and DATABASE_URL write.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ments lost the postgres mention

Taken verbatim from CI's ts-rs drift diff (run on this branch); no compile on the serving M5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit d4b5a10 into canary Oct 23, 2026
14 checks passed
@joelteply
joelteply deleted the fable/remove-postgres branch October 23, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant