-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize Cargo / timescaledb only if available
Previously, we depended on the value of PG_VERSIONS or TSDB_PG_VERSIONS. This doesn't always work correctly, however, we can switch to determining the versions at runtime, that should prevent errors like: 528.1 + for pg in '$PG_VERSIONS' 528.1 + init_flags=' --pg12 /usr/pgsql-12/bin/pg_config --pg13 /usr/pgsql-13/bin/pg_config --pg14 /usr/pgsql-14/bin/pg_config --pg15 /usr/pgsql-15/bin/pg_config --pg16 /usr/pgsql-16/bin/pg_config' 528.1 + cargo pgrx init --pg12 /usr/pgsql-12/bin/pg_config --pg13 /usr/pgsql-13/bin/pg_config --pg14 /usr/pgsql-14/bin/pg_config --pg15 /usr/pgsql-15/bin/pg_config --pg16 /usr/pgsql-16/bin/pg_config 528.1 Creating PGRX_HOME at `/home/postgres/.pgrx` 528.1 The application panicked (crashed). 528.1 Message: no major version: 528.1 0: The specified pg_config binary, `/usr/pgsql-16/bin/pg_config`, does not exist 528.1 1: No such file or directory (os error 2)
- Loading branch information
1 parent
367e64c
commit 4d3dbde
Showing
1 changed file
with
35 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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