Create Database and User
su - postgres
psql
CREATE USER myapp WITH PASSWORD 'strongpassword';
CREATE DATABASE myappdb OWNER myapp;
GRANT ALL PRIVILEGES ON DATABASE myappdb TO myapp;
💡 Use pgBouncer for connection pooling when your app has many concurrent connections.