Context
Bun corpus position 4044, js/third_party/postgres/postgres.test.ts, contains three test bodies gated together by TLS_POSTGRES_DATABASE_URL. It covers a TLS version query, 1,000 concurrent version queries exercising backpressure/resume behavior, and insert/select/delete lifecycle semantics.
Remaining work
- Connect the callable postgres.js tagged-template adapter to Home's native PostgreSQL/TLS transport.
- Support pooling/backpressure, safe resume after 50-query batches, returned-row shaping, CRUD with bound parameters, and idempotent cleanup.
- Exercise deterministic local TLS transport where possible while preserving the upstream secret-backed path.
- Ensure query/connect/close failures carry stable code, operation/phase, sanitized endpoint/database context, original cause, and operation stack frames without URL credentials or SQL parameter leakage.
Acceptance
- Without
TLS_POSTGRES_DATABASE_URL, the copied file remains one intentional skipped-suite todo covering all three test bodies. - With a compatible endpoint, all three upstream tests pass, including the 1,000-query workload.
- Permanent coverage verifies lifecycle/backpressure behavior and redacted diagnostics.
- #66 records the completed transport slice and corpus counts.