mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user