Skip to content

Commit e063b78

Browse files
brainrakemmlb
andauthored
fix(ami): ignore site profile library path for new cluster in pg_upgrade (#2602)
* fix(ami): ignore site profile library path for both clusters in pg_upgrade Assisted-by: Claude Sonnet 5.5 <noreply@anthropic.com> * image: bump version to .011 --------- Co-authored-by: Manuel Mendez <i@m.mmlb.dev>
1 parent 759e55b commit e063b78

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,10 @@ $(cat /etc/postgresql/pg_hba.conf)" >/etc/postgresql/pg_hba.conf
623623
sed -i '/^db_user_namespace/d' "$TMP_CONFIG"
624624
fi
625625

626+
# The site profile link (/nix/var/nix/profiles/site/lib/postgresql) holds extensions (supautils) built for the old major version, which the new cluster can't load.
627+
# Without this config both clusters load the copies bundled with their own postgres package from $libdir.
628+
sed -i '/^dynamic_library_path/d' "$TMP_CONFIG"
629+
626630
chown postgres:postgres "$TMP_CONFIG"
627631

628632
UPGRADE_COMMAND=$(

‎ansible/postgres_release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
postgres_release:
3-
postgresorioledb-17: "17.11.0.008-orioledb"
4-
postgres17: "17.11.0.008"
5-
postgres15: "15.19.0.008"
3+
postgresorioledb-17: "17.11.0.011-orioledb"
4+
postgres17: "17.11.0.011"
5+
postgres15: "15.19.0.011"

‎nix/packages/postgres.nix‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
../ext/hypopg.nix
5454
../ext/pg_tle.nix
5555
../ext/wrappers/default.nix
56+
# Remove only after initiate.sh and existing hosts use the site profile.
5657
../ext/supautils.nix
5758
../ext/plv8
5859
];

0 commit comments

Comments
 (0)