0 votes
1 view
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.3k 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 Jul 31, 2019 in SQL by Tech4ever (20.3k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...