Refactor seclabel.c to use the new check_object_ownership function.
Robert Haas <rhaas@postgresql.org>
Refactor seclabel.c to use the new check_object_ownership function. This avoids duplicate (and not-quite-matching) code, and makes the logic for SECURITY LABEL match COMMENT and ALTER EXTENSION ADD/DROP.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/seclabel.c | modified | +18 −72 |