Re: Re[2]: postgres not use table access permissions ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re[2]: postgres not use table access permissions ?
Date
Msg-id 8069.973283684@sss.pgh.pa.us
Whole thread Raw
In response to Re[2]: postgres not use table access permissions ?  (Partyka Robert <bobson@saturn.alpha.pl>)
List pgsql-hackers
Partyka Robert <bobson@saturn.alpha.pl> writes:
> if I do 
> # grant UPDATE, INSERT, SELECT on a to user1;
> it was treat as:
> # grant UPDATE, INSERT, DELETE, SELECT on a to user1;

Yeah.  The underlying permission set is actually "read, write, append"
(where write access also allows append).  So UPDATE and DELETE are
treated the same, and allowing them also allows INSERT.  This is
something that probably oughta be changed some day.  That'll doubtless
break some user applications, though, since the true permission set is
user-visible (try psql's \z command for example).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Ian Lance Taylor
Date:
Subject: Re: [HACKERS] 7.0.3 branded
Next
From: Larry Rosenman
Date:
Subject: Re: Summary: what to do about INET/CIDR