We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c92c659 commit 1a4e027Copy full SHA for 1a4e027
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -174,6 +174,12 @@ EOF
174
function patch_wrappers {
175
local IS_NIX_UPGRADE=$1
176
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
+
183
# This is a workaround for older versions of wrappers which don't have the expected
184
# naming scheme, containing the version in their library's file name
185
# e.g. wrappers-0.1.16.so, rather than wrappers.so
0 commit comments