| From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Restricting access to rows? |
| Date: | 2006-05-26 05:39:29 |
| Message-ID: | 20060526053929.GA21043@KanotixBox |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Benjamin Smith <lists(at)benjamindsmith(dot)com> schrieb:
> How can I set up a user so that Bob can update his records, without letting
> Bob update Jane's records? Is it possible, say with a view or some other
> intermediate data type?
You can use a VIEW to select all rows for CURRENT_USER, and then create
RULES for this view to do INSERT, UPDATE and DELETE.
A nice framework for row-level access-control is 'veil':
http://pgfoundry.org/projects/veil
HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Greg Stark | 2006-05-26 06:16:20 | Re: Restricting access to rows? |
| Previous Message | Benjamin Smith | 2006-05-26 04:55:52 | Restricting access to rows? |