Answers for "create user with role postgres"

C
42

postgres create user

sudo -u postgres psql
postgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
Posted by: Guest on September-01-2020
0

how to add user to role postgresql

CREATE ROLE joe LOGIN INHERIT;
CREATE ROLE admin NOINHERIT;
CREATE ROLE wheel NOINHERIT;
GRANT admin TO joe;
GRANT wheel TO admin;
Posted by: Guest on January-27-2021
0

postgresql create user roles

CREATE ROLE admin WITH CREATEDB CREATEROLE;
Posted by: Guest on July-22-2020
0

how to add user to role postgresql

GRANT group_role TO role1, ... ;
REVOKE group_role FROM role1, ... ;
Posted by: Guest on January-27-2021

Code answers related to "create user with role postgres"

Code answers related to "C"

Browse Popular Code Answers by Language