Skip to content

Commit 1a4e027

Browse files
committed
chore: don't shim wrappers if project doesn't have wrappers enabled
1 parent c92c659 commit 1a4e027

File tree

1 file changed

+6
-0
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+6
-0
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ EOF
174174
function patch_wrappers {
175175
local IS_NIX_UPGRADE=$1
176176

177+
WRAPPERS_ENABLED=$(run_sql -A -t -c "SELECT EXISTS(SELECT 1 FROM pg_extension WHERE extname = 'wrappers');")
178+
if [ "$WRAPPERS_ENABLED" = "f" ]; then
179+
echo "Wrappers extension not enabled. Skipping."
180+
return
181+
fi
182+
177183
# This is a workaround for older versions of wrappers which don't have the expected
178184
# naming scheme, containing the version in their library's file name
179185
# e.g. wrappers-0.1.16.so, rather than wrappers.so

0 commit comments

Comments
 (0)