Trying to run the following on postgresql:
CREATE EXTENSION IF NOT EXISTS pg_trgm
but I get:
HINT: Must be superuser to create this extension.
I was logged in as postgres
So I checked user roles:
Role name | Attributes | Member of
-----------+-------------------------------------------------+-----------
devserver | | {}
postgres | Create role, Create DB, Replication, Bypass RLS | {}
What can I do here to add a super user? Reinstalling makes no difference. Just returns to this exact state.
OS: Ubuntu 20.04.2 LTS x86_64
sudo -i -u postgreson ubuntu ->psqland test the command again?To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details.sudo -i -u postgres->sudo psqlsudo psql