Re: Deny access materialzsed view

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 24 November 2010 08:57, DÃster Horst <Horst.Duester@xxxxxxxx> wrote:
Hi
Â
IÂcreated a materialized view to manage editings via a real postgres view. The view has some rules to deliver all inserts, updates and deletes to the underlaying table with the appropriate privileges, insert, update and delete,Âfor members of an editing role. To avoid editings on the underlaying table I want to deny any accessÂexcept select access to the table forÂall users. Does anyone outside has an idea how to manage the described situation?
Â
I'll appreciate any hint.
Â
Regards
Horst
Â

-


Hi,
I'd use the security definer/invoker mechanism (http://www.postgresql.org/docs/9.0/interactive/sql-createfunction.html). This way you could create special user who is the owner of the rule functions, and can read/write to the table, and normal user, who cannot read/write to the table, but can run those functions.

regards
Szymon GuzÂ

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux