Repository navigation
fix: stop plpgsql_check double-load and bundle TAP pg_prove - #306
Merged
Merged
Conversation
Rewrite versioned module_pathname to the unversioned preload path so CREATE EXTENSION does not load a second copy on Darwin, and ship a relocatable TAP::Harness pg_prove in the portable artifact.
jgoux
approved these changes
Sep 17, 2026
pull Bot
pushed a commit
to oogalieboogalie/cli
that referenced
this pull request
Sep 17, 2026
…supabase#6648) ## Summary Follow-up to supabase#6540. Stack `db dump`, `migration squash`, and `test db` launch `pg_dump` / `pg_dumpall` / `pg_prove` from the catalog Postgres artifact or the same catalog image through `@supabase/stack` `runPostgresClient`, not host PATH. Native `--linked` / `--db-url` keep the resolved host; `--local` native rewrites loopback to `127.0.0.1`. Platforms without a native artifact (Windows, Intel Mac) use a one-shot Docker client of that image. Catalog pins `15.14.1.168` / `17.6.1.168` to the slim-services #306 republish, which includes `pg_prove` in the image. Catalog Postgres also ships `plpgsql_check`, so native and container `db lint --local` can `CREATE EXTENSION` inside the rolled-back lint transaction. Companion: supabase/slim-services#306
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
Native Postgres 15/17
CREATE EXTENSION plpgsql_checkdouble-loads on Darwin becausecp -rLplus skipped lib dedup leaves versioned and unversioned modules as two files. Rewrite controlmodule_pathnameto$libdir/plpgsql_checkso CREATE matches the preload path.The same portable artifact now ships a relocatable TAP::Harness
pg_prove(bundled perl + pgTAP source handler). Host and image smokes start with the full docker.io preload set, assertCREATE EXTENSION plpgsql_check, and run a one-filepg_provesuite (Files=1).Do not advance
release_floor. Republish unpublished 15.14.1.159+ and 17.6.1.159+ on existing tags withservice-release.ymlforce=true. Native caches will not auto-refresh; wipe or re-download the postgres artifact.