Re: [GENERAL] Grant column level permissions

2010-04-08 Thread Michał Pawlikowski
On Thu, Apr 8, 2010 at 1:52 PM, dipti shah wrote: > techdb=> select * from techtable; > ERROR:  permission denied for relation techtable > techdb=> > > ...and it gives permission denied..! This should work: SELECT description from techtable; UPDATE techtable SET description = 'xyz' This should n

Re: [GENERAL] Grant column level permissions

2010-04-08 Thread dipti shah
Ohh...sorry. It works but I am wondering why pg_namespace doesn't display any information. techdb=> select description from techtable; description - (0 rows) techdb=> select number from techtable; ERROR: permission denied for relation techtable Thanks a ton. On Thu, Apr 8, 2010 at

Re: [GENERAL] Grant column level permissions

2010-04-08 Thread dipti shah
I also tried below: techdb=# revoke all ON techtable from public; REVOKE techdb=# select pc.relname, pc.relacl from pg_class pc, pg_namespace pn where pc.relnamespace=pn.oid and pn.nspname='techdb' and pc.relname='techtable'; relname | relacl ---+-

Re: [GENERAL] Grant column level permissions

2010-04-08 Thread Michał Pawlikowski
On Thu, Apr 8, 2010 at 1:41 PM, dipti shah wrote: > Okay. I think I got it but it is not working the way it should. I have given > select permission on one column but still it is displaying both the columns. > Could you please tell me what is wrong. > > > techdb=# GRANT SELECT (description), UPDAT

Re: [GENERAL] Grant column level permissions

2010-04-08 Thread dipti shah
Okay. I think I got it but it is not working the way it should. I have given select permission on one column but still it is displaying both the columns. Could you please tell me what is wrong. techdb=# GRANT SELECT (description), UPDATE (description) ON techtable TO user1; GRANT sysdb=> select *

Re: [GENERAL] Grant column level permissions

2010-04-08 Thread dipti shah
Yup. I read it and tired couple of ways but couldn't figured out how to specify column names. It gives me below error message and hence, I asked for the example. GRANT { { SELECT | INSERT | UPDATE | REFERENCES } ( *column* [, ...] ) [,...] | ALL [ PRIVILEGES ] ( *column* [, ...] ) } ON [ T

Re: [GENERAL] Grant column level permissions

2010-04-08 Thread Michael Glaesemann
On Apr 8, 2010, at 4:22 , dipti shah wrote: > Hi, from postgesql features list mentioned at > http://www.postgresql.org/about/press/features84.html, I came to know that > it is possible to grant column level permissions. > Could anyone please give me the example of how to grant column level >