pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: dbuser acess privileges
Date: Thu, 4 Apr 2019 07:49:48 -0500
Message-ID: <e1e7df41-67d3-59cd-97e3-707066d6db86@gmail.com> (raw)
In-Reply-To: <VI1PR0501MB2574023F98327C987C2346C1EF500@VI1PR0501MB2574.eurprd05.prod.outlook.com>
References: <CAJCZkoJo_e8yQCowniedv3Tw5MqZ55NNfumSSd=bWKeE+Vrjuw@mail.gmail.com>
	<VI1PR0501MB2574023F98327C987C2346C1EF500@VI1PR0501MB2574.eurprd05.prod.outlook.com>

You'd think the implicit SELECT perm of that table for the explicit use of 
UPDATE would be covered by GRANT UPDATE.

On 4/4/19 7:25 AM, Patrick FICHE wrote:
>
> 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 <http://www.aqsacom.com/;
>
> *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
>

-- 
Angular momentum makes the world go 'round.

Attachments:

image002.png (image/png, 7.6K) download view image

view thread (9+ messages)  latest in thread

Message-ID: <e1e7df41-67d3-59cd-97e3-707066d6db86@gmail.com>
Permalink:  ../e1e7df41-67d3-59cd-97e3-707066d6db86@gmail.com/
Also on:    postgresql.org/message-id/e1e7df41-67d3-59cd-97e3-707066d6db86@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: dbuser acess privileges
  In-Reply-To: <e1e7df41-67d3-59cd-97e3-707066d6db86@gmail.com>
  References: <CAJCZkoJo_e8yQCowniedv3Tw5MqZ55NNfumSSd=bWKeE+Vrjuw@mail.gmail.com> <VI1PR0501MB2574023F98327C987C2346C1EF500@VI1PR0501MB2574.eurprd05.prod.outlook.com> <e1e7df41-67d3-59cd-97e3-707066d6db86@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox