Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (20.3k points)

In Postgres, how do I change an existing user to be a superuser? I don't want to delete the existing user, for various reasons.

# alter user myuser ...?

1 Answer

0 votes
by (40.7k points)

Try this code: 

ALTER USER my_user WITH SUPERUSER;

For detailed information, you can directly refer to

Docs.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 12, 2019 in SQL by Tech4ever (20.3k points)
0 votes
1 answer
asked Dec 16, 2020 in SQL by Appu (6.1k points)

Browse Categories

...