Sql – postgres: upgrade a user to be a superuser

postgresqlsql

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

Best Answer

ALTER USER myuser WITH SUPERUSER;

You can read more at the Documentation