Postgres: upgrade a user to be a superuser?

alter, database, postgresql, sql, superuser

Solution

ALTER USER myuser WITH SUPERUSER;

You can read more at the Documentation for ALTER USER

Problem

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 ...? ```

Original source