PostgreSQL 18 · Databases and roles
Create a login role
Create a role that can sign in with a password. Use a real password.
CREATE ROLE app_user WITH LOGIN PASSWORD 'change-me';
Official PostgreSQL 18 documentation
PostgreSQL 18 · Databases and roles
Create a role that can sign in with a password. Use a real password.
CREATE ROLE app_user WITH LOGIN PASSWORD 'change-me';
Official PostgreSQL 18 documentation
Was this page helpful?