Refactor seclabel.c to use the new check_object_ownership function.

Robert Haas <rhaas@postgresql.org>

Commit: efa415da8c0fb8c1c0bc50faebac430f8b917571
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-03-04T22:26:37Z
Releases: 9.1.0
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

PathChange+/−
src/backend/commands/seclabel.c modified +18 −72