DEV Community

Discussion on: PostgreSQL 16 Installation on Ubuntu 22.04

Collapse
 
foxeyerinx profile image
Rinx • Edited

I run this to create a root role (to match with my root user on ubuntu 20.04) so I don't have to switch to postgres user to use pg_restore.

sudo -u postgres createuser --interactive
Enter name of role to add: root
Shall the new role be a superuser? (y/n) y
Enter fullscreen mode Exit fullscreen mode