zalando / spilo

Highly available elephant herd: HA PostgreSQL cluster using Docker
Apache License 2.0
1.55k stars 382 forks source link

Skip relinking files for `PGVERSION` #908

Closed owenthereal closed 1 year ago

owenthereal commented 1 year ago

https://github.com/zalando/spilo/pull/794 adds support for pg 15 & ubuntu 22.04. But when PGVERSION is set to non-15 (e.g. PGVERSION=14), we got the following error

148.2 base.sh: line 284: cd: /usr/share/postgresql/14/contrib/postgis-3.3: No such file or directory

This is because the relinking of the file is hard-coded to 15 while it should be the value of PGVESION. A real word use case can be referred to here where POSTGRES_BASE_VERSION=14.

owenthereal commented 1 year ago

cc: @hughcapet @sdudoladov

hughcapet commented 1 year ago

thank you, but there is already another PR fixing the actual problem, which we are planning to merge soon

hughcapet commented 1 year ago

can you please double-check that your problem is solved in the current master branch state?