Skip to content

fix: stop plpgsql_check double-load and bundle TAP pg_prove - #306

Merged
avallete merged 1 commit into
mainfrom
avallete/postgres-client-tools-plpgsql-check
Sep 17, 2026
Merged

avallete merged 1 commit into
mainfrom
avallete/postgres-client-tools-plpgsql-check

Conversation

@avallete

Copy link
Copy Markdown
Member

Summary

Native Postgres 15/17 CREATE EXTENSION plpgsql_check double-loads on Darwin because cp -rL plus skipped lib dedup leaves versioned and unversioned modules as two files. Rewrite control module_pathname to $libdir/plpgsql_check so 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, assert CREATE EXTENSION plpgsql_check, and run a one-file pg_prove suite (Files=1).

Do not advance release_floor. Republish unpublished 15.14.1.159+ and 17.6.1.159+ on existing tags with service-release.yml force=true. Native caches will not auto-refresh; wipe or re-download the postgres artifact.

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.
@avallete
avallete merged commit 1850661 into main Sep 17, 2026
2 checks passed
@avallete
avallete deleted the avallete/postgres-client-tools-plpgsql-check branch September 17, 2026 07:46
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
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.

2 participants