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 974fa1f commit 5d51eccCopy full SHA for 5d51ecc
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -309,8 +309,15 @@ function initiate_upgrade {
309
echo "7. Disabling extensions and generating post-upgrade script"
310
handle_extensions
311
312
- echo "8. Granting SUPERUSER to postgres user"
313
- run_sql -c "ALTER USER postgres WITH SUPERUSER;"
+ echo "8. TODO"
+ # run_sql -c "ALTER USER postgres WITH SUPERUSER;"
314
+ run_sql <<-EOSQL
315
+begin;
316
+alter role postgres rename to supabase_admin_;
317
+alter role supabase_admin rename to postgres;
318
+alter role supabase_admin_ rename to supabase_admin;
319
+commit;
320
+EOSQL
321
322
if [ -z "$IS_NIX_UPGRADE" ]; then
323
if [ -d "/usr/share/postgresql/${PGVERSION}" ]; then
0 commit comments