Re: RESTRICT TABLE OWNER NOT TO DELETE IT

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

 



Peter Wainaina <petwah17@xxxxxxxxx> writes:
> i need help on how to restrict the table owner no to drop/truncate the table

As far as Postgres is concerned, "can drop the object" is pretty much
the definition of ownership.  Maybe you need to rethink who owns which
tables in your design.  (Yes, you could use event triggers to interfere
with the normal system behavior, but that doesn't make it a good idea.)

The owner can revoke her own TRUNCATE privilege, but that's just a
mistake preventer, since she can also re-grant the privilege to herself.

			regards, tom lane





[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