mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Adjust many backend functions to return OID rather than void.
Extracted from a larger patch by Dimitri Fontaine. It is hoped that this will provide infrastructure for enriching the new event trigger functionality, but it seems possibly useful for other purposes as well.
This commit is contained in:
@ -1036,7 +1036,7 @@ DropRole(DropRoleStmt *stmt)
|
||||
/*
|
||||
* Rename role
|
||||
*/
|
||||
void
|
||||
Oid
|
||||
RenameRole(const char *oldname, const char *newname)
|
||||
{
|
||||
HeapTuple oldtuple,
|
||||
@ -1142,6 +1142,8 @@ RenameRole(const char *oldname, const char *newname)
|
||||
* Close pg_authid, but keep lock till commit.
|
||||
*/
|
||||
heap_close(rel, NoLock);
|
||||
|
||||
return roleid;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user