[SQL] Permissions on tables and views

2005-03-22 Thread subhash
Hi,
I have a requirement where I have a table and a view on top of it. I want to
make some changes so that a user in a given group would be able to insert/update
only on the view (ofcourse i have a rule which inserts/updates the table) but
not on the underlying table. I tried revoke the insert/update permissions on the
table, but it fails even the inserts/updates on the view. How can i set these
permissions ?
Thanks,
Subhash. 

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly


[SQL] Permissions on tables

2005-03-26 Thread subhash
Hi,
I have a requirement where I have a table and a view on top of it. I want to
make some changes so that a user in a given group would be able to insert/update
only on the view (ofcourse i have a rule which inserts/updates the table) but
not on the underlying table. I tried revoke the insert/update permissions on the
table, but it fails even the inserts/updates on the view. How can i set these
permissions ?
Thanks,
Subhash.


---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster


[SQL] md5 in pg_shadow?

2005-05-12 Thread subhash
Hi,
I was trying to write a function to validate the username and its password in
the pg_shadow table. The function should take in the username and password as
arguments and see if it matches with those in the pg_shadow table. But the md5
hashed password in pg_shadow doesnot match with what i get when i do
select 'md5' || md5('some_password');

Is there a function already present to do this or how can i get the same hashed
password that i get in pg_shadow so i can write my own function?


Please help me out on this.
Thanks,
Subhash.

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster