Embedded PostgreSQL 17 plan fails when 17.5.0 artifact is unavailable
Summary
pgschema plan with the default embedded plan database can fail on a clean GitHub-hosted Ubuntu runner before reading the desired schema:
Error: failed to start embedded PostgreSQL: failed to start embedded PostgreSQL: no version found matching 17.5.0
Observed with the official pgschema v1.12.0 linux-amd64 binary on Ubuntu 24.04 while the target database was pgvector/pgvector:pg17.
Evidence
Public failed job: https://github.com/ONREZA/sqlx-js/actions/runs/30903279160/job/91972356115
The target connection succeeds and the preceding test suite completes. The failure occurs when pgschema plan starts its embedded plan database.
The current pgschema source maps PostgreSQL major 17 to embeddedpostgres.V17. Both embedded-postgres v1.33.0 used by pgschema and v1.34.0 define that constant as exact version 17.5.0. If the binary artifact cannot be resolved, pgschema has no fallback and the default plan workflow becomes dependent on external artifact availability.
Workaround
Configure an external plan database through --plan-host / PGSCHEMA_PLAN_HOST and the related plan connection options.
Suggested acceptance criteria
- A clean supported Linux runner can use the default embedded plan database for PostgreSQL 17 without relying on an unavailable exact artifact.
- If an embedded artifact cannot be resolved, the error identifies the attempted source and gives the external plan database flags as an actionable fallback.
- CI covers startup from an empty embedded-postgres cache for every advertised PostgreSQL major version.
This is an upstream issue that happens from time to time. Out of our control