Re: [RFC] Security label support - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [RFC] Security label support
Date
Msg-id 6650.1274989181@sss.pgh.pa.us
Whole thread Raw
In response to Re: [RFC] Security label support  (Stephen Frost <sfrost@snowman.net>)
Responses Re: [RFC] Security label support
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
>> We also add a dependency between the labeled object and the security
>> label itself. It also enables to clean up orphan labels automatically,
>> without any new invention.

> I agree that we need to address this.  I am kind of curious how this is
> handled for comments?  It appears to be, but I don't see an entry in
> pg_depend when a comment is added to an object, yet the entry in
> pg_description disappears when a table is dropped.  <Shrug>

IIRC, dropping comments is hard-wired into the object drop mechanism ---
this seemed more efficient than having to add a pg_depend entry for each
one.  You could argue that either way of course depending on how many
comments you expect there to be in the system.

I'm not real sure that you want a dependency for a security label anyway
--- wouldn't that mean each label could only be used for one object?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: functional call named notation clashes with SQL feature
Next
From: Robert Haas
Date:
Subject: Re: Idea for getting rid of VACUUM FREEZE on cold pages