SECURITY LABEL ON PROPERTY GRAPH: supported?
Commit 2f094e7 edited doc/src/sgml/ref/security_label.sgml to say this would
work, but:
SECURITY LABEL ON PROPERTY GRAPH pgr IS 'unclassified';
ERROR: security labels are not supported for this type of object
Which matches your intent, the implementation or the documentation?
(I noticed this when a cursory audit of RELKIND_VIEW matches took me to
SecLabelSupportsObjectType(). Consider auditing for RELKIND_VIEW matches that
need edits for RELKIND_PROPGRAPH.)
On 05.07.26 00:12, Noah Misch wrote:
Commit 2f094e7 edited doc/src/sgml/ref/security_label.sgml to say this would
work, but:SECURITY LABEL ON PROPERTY GRAPH pgr IS 'unclassified';
ERROR: security labels are not supported for this type of objectWhich matches your intent, the implementation or the documentation?
It was not meant to be supported (because it's unclear what it should
do; someone could fix that). I suppose the documentation was changed
because the syntax does work, but that's just because of the way that
gram.y is factored. We don't document similar
working-but-ultimately-not-working syntax, so this was inconsistent.
There were some similar leftovers in the psql tab completion. I have
committed a fix for this.