Answers for "postgresql create user and grant all privileges"

7

grant all privileges database postgres to user

GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA schema_name TO username;
Posted by: Guest on May-20-2020
1

postgres create user with superuser privileges

sudo -u postgres createuser -s -i -d -r -l -w <<username>>
sudo -u postgres psql -c "ALTER ROLE <<username>> WITH PASSWORD '<<password>>';"
Posted by: Guest on November-03-2020

Code answers related to "postgresql create user and grant all privileges"

Browse Popular Code Answers by Language