Re: Add sentence about SECURITY LABEL object ownership
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Patrick Stählin <me@packi.ch>, pgsql-docs@lists.postgresql.org
Date: 2025-06-05T15:19:02Z
Lists: pgsql-docs
Laurenz Albe <laurenz.albe@cybertec.at> writes: > On Thu, 2025-06-05 at 15:29 +0200, Patrick Stählin wrote: >> I noticed that we don't document that you need to own the object being >> modified by SECURITY LABEL. Yeah, clearly a documentation oversight. > Wouldn't it be more accurate to say that you have to be a member of the owning role? > But perhaps that would be complicated enough to confuse many users. > In general, +1 for documenting that. Our standard boilerplate for this is, eg, You must own the table to use <command>ALTER TABLE</command>. I don't see a reason to do it differently here. regards, tom lane
Commits
-
Doc: you must own the target object to use SECURITY LABEL.
- 04acad82b0f9 18.0 landed
- 626b439e367d 13.22 landed
- 09498d2f2c73 14.19 landed
- 74637fb79777 15.14 landed
- aad8bd69530b 16.10 landed
- 767d38e2c096 17.6 landed