mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +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:
@ -1660,7 +1660,7 @@ RemoveAmProcEntryById(Oid entryOid)
|
||||
/*
|
||||
* Rename opclass
|
||||
*/
|
||||
void
|
||||
Oid
|
||||
RenameOpClass(List *name, const char *access_method, const char *newname)
|
||||
{
|
||||
Oid opcOid;
|
||||
@ -1713,12 +1713,14 @@ RenameOpClass(List *name, const char *access_method, const char *newname)
|
||||
|
||||
heap_close(rel, NoLock);
|
||||
heap_freetuple(tup);
|
||||
|
||||
return opcOid;
|
||||
}
|
||||
|
||||
/*
|
||||
* Rename opfamily
|
||||
*/
|
||||
void
|
||||
Oid
|
||||
RenameOpFamily(List *name, const char *access_method, const char *newname)
|
||||
{
|
||||
Oid opfOid;
|
||||
@ -1802,6 +1804,8 @@ RenameOpFamily(List *name, const char *access_method, const char *newname)
|
||||
|
||||
heap_close(rel, NoLock);
|
||||
heap_freetuple(tup);
|
||||
|
||||
return opfOid;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user