Skip to content

Commit

Permalink
fix: add extensions schema to postgis topology search path (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc authored Jan 2, 2025
1 parent 2043276 commit 3df2ac1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ postgres_major:

# Full version strings for each major version
postgres_release:
postgresorioledb-17: "17.0.1.011-orioledb"
postgres15: "15.8.1.021"
postgres16: "16.3.1.027"
postgresorioledb-17: "17.0.1.012-orioledb"
postgres15: "15.8.1.022"
postgres16: "16.3.1.028"

# Non Postgres Extensions
pgbouncer_release: "1.19.0"
Expand Down
4 changes: 4 additions & 0 deletions nix/ext/postgis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ stdenv.mkDerivation rec {
ln -s $prog $prog-${version}
done
for file in $out/share/postgresql/extension/postgis_topology*--${version}.sql; do
sed -i "/SELECT topology.AddToSearchPath('topology');/i SELECT topology.AddToSearchPath('extensions');" "$file"
done
mkdir -p $doc/share/doc/postgis
mv doc/* $doc/share/doc/postgis/
'';
Expand Down

0 comments on commit 3df2ac1

Please sign in to comment.