Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grant all privileges database postgres to user

GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA schema_name TO username;
Comment

grant permission in postgres

GRANT ALL PRIVILEGES ON DATABASE db_name TO username;
Comment

Check user permissions on postgres database

select * from information_schema.role_table_grants where grantee='<user>';
Comment

postgres user permissions

grant select, insert, <other_permissions> on <table> to <role>;
Comment

grant all privileges database postgres to user

GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA schema_name TO username;
Comment

postgresql user permissions to database

sudo -u postgres 
psqlpostgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
Comment

PREVIOUS NEXT
Code Example
Shell :: cypress 
Shell :: install joplin using snap 
Shell :: awk print only range of lines 
Shell :: get ssm version 
Shell :: install composer per project in multiple php version 
Shell :: rst bash code block 
Shell :: sed remove square brackets 
Shell :: How To Create Notification Using Batch Script 
Shell :: how to hide log in background job in linux 
Shell :: bash print fields that begin with string 
Shell :: emulator android 
Shell :: install glesv2 and egl library 
Shell :: install Dagger 2 in Android studio 
Shell :: bash numbering even filename 
Shell :: bash color test 
Shell :: Kubernetes cluster unreachable: Get "https://192.168.56.10:6443/version?timeout=32s": net/http: TLS handshake timeout 
Shell :: kernel build dependencies 
Shell :: shell randomly permute lines 
Shell :: how to install flow on gatsbyjs 
Shell :: open new terminal window with applescript 
Shell :: ssh to a machine and run a command 
Shell :: git add everything except 
Shell :: linux install with package manager snap snapd 
Shell :: how to open a iso file in linux 
Shell :: search terminal history 
Shell :: (linux/arm) does not match the detected host platform (linux/amd64) 
Shell :: shell run in background no output 
Shell :: git shothand commands 
Shell :: removing an initialized git 
Shell :: codepush get keys 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =