RE: dbuser acess privileges - Mailing list pgsql-general

From Patrick FICHE
Subject RE: dbuser acess privileges
Date
Msg-id VI1PR0501MB2574023F98327C987C2346C1EF500@VI1PR0501MB2574.eurprd05.prod.outlook.com
Whole thread Raw
In response to dbuser acess privileges  (Durgamahesh Manne <maheshpostgres9@gmail.com>)
Responses Re: dbuser acess privileges  (Ron <ronljohnsonjr@gmail.com>)
Re: dbuser acess privileges  (Durgamahesh Manne <maheshpostgres9@gmail.com>)
List pgsql-general

Hi,

 

If I’m not wrong, UPDATE requires SELECT permission as the UPDATE statement needs to read the data to be updated.

So, you should probably add GRANT SELECT and you get it work.

 

Regards,

 

Patrick Fiche

Database Engineer, Aqsacom Sas.

c. 33 6 82 80 69 96

 

01-03_AQSA_Main_Corporate_Logo_JPEG_White_Low.jpg

 

From: Durgamahesh Manne <maheshpostgres9@gmail.com>
Sent: Thursday, April 4, 2019 12:07 PM
To: pgsql-general@lists.postgresql.org
Subject: dbuser acess privileges

 

hi  

 

Respected international pgsql team

 

pershing=# grant INSERT on public.hyd to ravi;

GRANT

i have granted insert command access to non superuser(ravi)

pershing=> insert into hyd (id,name) values('2','delhi');

INSERT 0 1

here data inserted 

 

 

pershing=# grant UPDATE on public.hyd to ravi;

GRANT

i have granted update command access to non superuser(ravi)

 

pershing=> update public.hyd set id = 3 where name = 'hyderabad';

ERROR:  permission denied for relation hyd

please let me know what is the issue with update command

 

 

 

Attachment

pgsql-general by date:

Previous
From: Durgamahesh Manne
Date:
Subject: Re: dbuser acess privileges
Next
From: Ron
Date:
Subject: Re: dbuser acess privileges