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