From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | harald(dot)bartel(at)prozentor, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: grant insert for single tables does not work |
Date: | 2001-04-20 19:51:03 |
Message-ID: | 27745.987796263@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
pgsql-bugs(at)postgresql(dot)org writes:
> It is not possible to grant insert for a single table. Granting this
> right only works if grant all is used.
Works for me:
<< as postgres >>
regression=# create user foo;
CREATE USER
regression=# create table zz (f1 int);
CREATE
<< as foo >>
regression=> select * from zz;
ERROR: zz: Permission denied.
regression=> insert into zz values(22);
ERROR: zz: Permission denied.
<< as postgres >>
regression=# grant insert on zz to foo;
CHANGE
<< as foo >>
regression=> insert into zz values(22);
INSERT 939431 1
regression=> select * from zz;
ERROR: zz: Permission denied.
regression=> update zz set f1 = 33;
ERROR: zz: Permission denied.
regression=>
If you think there's a problem you're going to have to be more
specific.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-04-20 19:53:27 | Re: grant insert for single tables does not work |
Previous Message | Tom Lane | 2001-04-20 19:43:45 | Re: wrong dump order in pg_dump for new data types |