Skip to content

Conversation

@willibrandon
Copy link

@willibrandon willibrandon commented Jan 9, 2026

Fixes #2237

pg_regress_path() fails on Windows with PostgreSQL 13-16 because EnterpriseDB precompiled binaries place pg_regress.exe in /bin/ rather than /lib/pgxs/src/test/regress/. PostgreSQL 17+ (Meson builds) installs to the latter location.

This PR:

  1. Adds a test that verifies pg_regress_path() returns an existing executable
  2. Adds CI step to run this test on Windows

Status: Draft - test currently fails on pg13-16, demonstrating the issue. Fix to follow.

…alfoundation#2237)

This test verifies that pg_regress_path() returns a path to an existing
pg_regress executable for all configured PostgreSQL versions.

Currently fails on Windows with PostgreSQL 13-16 because EnterpriseDB
precompiled binaries place pg_regress in /bin/ rather than
/lib/pgxs/src/test/regress/. PostgreSQL 17+ uses Meson which installs
to /lib/pgxs/src/test/regress/.

This commit adds:
- Test in pgrx-pg-config that checks all configured PG versions
- CI step to run this test on Windows after cargo pgrx init
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.

cargo pgrx regress fails on Windows. All tests output "The system cannot find the path specified".

1 participant