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

8 s
8

ALTER USER myuser WITH SUPERUSER;

You can read more at the Documentation

Leave a Reply

Your email address will not be published. Required fields are marked *