OSDN Git Service

Refactor seclabel.c to use the new check_object_ownership function.
authorRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2011 22:26:37 +0000 (17:26 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2011 22:26:37 +0000 (17:26 -0500)
commitefa415da8c0fb8c1c0bc50faebac430f8b917571
tree1559f14fb8a6de96246de248f27b8ce67cbe9f34
parentb9cff97fdf486eca7e563a9696a7391048814d0f
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.
src/backend/commands/seclabel.c