timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
17.49k stars 876 forks source link

Enhancement: improve RHEL/Centos .rpm package to be compatible with recent Fedora releases #2547

Open hedayat opened 3 years ago

hedayat commented 3 years ago

While TDB can work fine with Fedora's own postgresql package, the current TDB rpm packages doesn't install on Fedora out of the box. With few changes, it'll become compatible:

  1. The postinstall scriptlet should be extended to try using pg_ctl on system PATH if it cannot find /usr/pgsql-12/bin/pg_config
  2. The RPM package can depend on postgresql and postrgresql-server >= 12 besides postgresql12 & postgresql12-server packages.

(Well, maybe RHEL 7 RPM doesn't support conditional dependencies (e.g. postgresql12 >= 12 || postgresql >= 12). In that case, a separate package/repo can be provided for Fedora.

Note that current TDB packages for RHEL 7 work fine on many recent Fedora versions (I've tried F32 & F33 and IIRC F31). And I'd guess it should work OK on RHEL 8 too. So an RHEL 8 repo should serve both RHEL 8 & recent Fedora versions. Hopefully, RHEL 8 should support conditional dependencies. (Not sure though).

svenklemm commented 4 days ago

The problem seems to be missing pg_config in the appstream package. Is there a way to get a pg_config version that is in sync with the installed appstream postgres package?