Zugriff auf Postgresql PSQL mit sudo

sudo -u postgres psql

// Create New Database 
CREATE DATABASE db_name;

// Create New User
CREATE USER username WITH PASSWORD password;

// Grant Admin Access ?
GRANT ALL PRIVILEGES ON DATABASE db_name TO username;
Yucky Yak