File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ begin;
93
93
create role supabase_tmp superuser;
94
94
set session authorization supabase_tmp;
95
95
96
+ do $$
97
+ begin
98
+ if exists (select from pg_extension where extname = 'timescaledb') then
99
+ execute(format('select %I.timescaledb_pre_restore()', (select pronamespace::regnamespace from pg_proc where proname = 'timescaledb_pre_restore')));
100
+ end if;
101
+ end
102
+ $$;
103
+
96
104
do $$
97
105
declare
98
106
postgres_rolpassword text := (select rolpassword from pg_authid where rolname = 'postgres');
@@ -493,6 +501,14 @@ begin
493
501
end
494
502
$$;
495
503
504
+ do $$
505
+ begin
506
+ if exists (select from pg_extension where extname = 'timescaledb') then
507
+ execute(format('select %I.timescaledb_post_restore()', (select pronamespace::regnamespace from pg_proc where proname = 'timescaledb_post_restore')));
508
+ end if;
509
+ end
510
+ $$;
511
+
496
512
set session authorization supabase_admin;
497
513
drop role supabase_tmp;
498
514
commit;
You can’t perform that action at this time.
0 commit comments