File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ function cleanup {
25
25
exit " $EXIT_CODE "
26
26
}
27
27
28
+ function execute_extension_upgrade_patches {
29
+ if [ -f " /var/lib/postgresql/extension/wrappers--0.3.1--0.4.1.sql" ] && [ ! -f " /usr/share/postgresql/15/extension/wrappers--0.3.0--0.4.1.sql" ]; then
30
+ cp /var/lib/postgresql/extension/wrappers--0.3.1--0.4.1.sql /var/lib/postgresql/extension/wrappers--0.3.0--0.4.1.sql
31
+ ln -s /var/lib/postgresql/extension/wrappers--0.3.0--0.4.1.sql /usr/share/postgresql/15/extension/wrappers--0.3.0--0.4.1.sql
32
+ fi
33
+ }
34
+
28
35
function execute_patches {
29
36
# Patch pg_net grants
30
37
PG_NET_ENABLED=$( run_sql -A -t -c " select count(*) > 0 from pg_extension where extname = 'pg_net';" )
@@ -99,6 +106,8 @@ function complete_pg_upgrade {
99
106
CI_start_postgres --new-bin
100
107
fi
101
108
109
+ execute_extension_upgrade_patches || true
110
+
102
111
echo " 4. Running generated SQL files"
103
112
retry 3 run_generated_sql
104
113
You can’t perform that action at this time.
0 commit comments