From 82b1b213cad3a69cf5f3dfaa81687c14366960fc Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Sat, 29 Dec 2012 07:55:37 -0500 Subject: 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 --- src/backend/commands/functioncmds.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/functioncmds.c') diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index 2c36ce0e0f7..fe63a1205a2 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -1111,7 +1111,7 @@ RenameFunction(List *name, List *argtypes, const char *newname) * RENAME and OWNER clauses, which are handled as part of the generic * ALTER framework). */ -void +Oid AlterFunction(AlterFunctionStmt *stmt) { HeapTuple tup; @@ -1241,6 +1241,8 @@ AlterFunction(AlterFunctionStmt *stmt) heap_close(rel, NoLock); heap_freetuple(tup); + + return funcOid; } /* @@ -1318,7 +1320,7 @@ SetFunctionArgType(Oid funcOid, int argIndex, Oid newArgType) /* * CREATE CAST */ -void +Oid CreateCast(CreateCastStmt *stmt) { Oid sourcetypeid; @@ -1632,6 +1634,8 @@ CreateCast(CreateCastStmt *stmt) heap_freetuple(tuple); heap_close(relation, RowExclusiveLock); + + return castid; } /* -- cgit v1.2.3