Add sentence about SECURITY LABEL object ownership

Patrick Stählin <me@packi.ch>

From: Patrick Stählin <me@packi.ch>
To: pgsql-docs@lists.postgresql.org
Date: 2025-06-05T13:29:46Z
Lists: pgsql-docs

Attachments

Hi,

I noticed that we don't document that you need to own the object being 
modified by SECURITY LABEL.

Page: https://www.postgresql.org/docs/current/sql-security-label.html

I've attached a patch that would have answered that question (for me) 
without diving into the code.

Thanks,
Patrick

Commits

  1. Doc: you must own the target object to use SECURITY LABEL.