diff options
author | Robert Haas <rhaas@postgresql.org> | 2012-12-29 07:55:37 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2012-12-29 07:55:37 -0500 |
commit | 82b1b213cad3a69cf5f3dfaa81687c14366960fc (patch) | |
tree | e19129f124c02d7ef274393d584de97cc18a5f66 /src/backend/commands/seclabel.c | |
parent | 5ab3af46ddd2f2c2b248f1ffdb688b394d4bb387 (diff) | |
download | postgresql-82b1b213cad3a69cf5f3dfaa81687c14366960fc.tar.gz |
Adjust more backend functions to return OID rather than void.
This is again intended to support extensions to the event trigger
functionality. This may go a bit further than we need for that
purpose, but there's some value in being consistent, and the OID
may be useful for other purposes also.
Dimitri Fontaine
Diffstat (limited to 'src/backend/commands/seclabel.c')
-rw-r--r-- | src/backend/commands/seclabel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/commands/seclabel.c b/src/backend/commands/seclabel.c index 91f41a1cd7..cdb2e88f26 100644 --- a/src/backend/commands/seclabel.c +++ b/src/backend/commands/seclabel.c @@ -38,7 +38,7 @@ static List *label_provider_list = NIL; * * Apply a security label to a database object. */ -void +Oid ExecSecLabelStmt(SecLabelStmt *stmt) { LabelProvider *provider = NULL; @@ -131,6 +131,8 @@ ExecSecLabelStmt(SecLabelStmt *stmt) */ if (relation != NULL) relation_close(relation, NoLock); + + return address.objectId; } /* |