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 ...?
To expand on the above and make a quick reference:
ALTER USER username WITH SUPERUSER;ALTER USER username WITH NOSUPERUSER; ALTER USER username CREATEDB;You can also use CREATEROLE and CREATEUSER to allow a user privileges without making them a superuser.
Documentation