postgres set user as superuser 1

postgres set user as superuser

ALTER USER myuser WITH SUPERUSER;

Here is what the above code is Doing:
1. Create a new user named myuser with password mypass.
2. Give myuser permission to create databases and tables.
3. Give myuser permission to create new roles.
4. Make myuser a superuser so that it can do anything.

Similar Posts