mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Extend object-access hook machinery to support post-alter events.
This also slightly widens the scope of what we support in terms of post-create events. KaiGai Kohei, with a few changes, mostly to the comments, by me
This commit is contained in:
@@ -1169,6 +1169,8 @@ AlterFunction(AlterFunctionStmt *stmt)
|
||||
simple_heap_update(rel, &tup->t_self, tup);
|
||||
CatalogUpdateIndexes(rel, tup);
|
||||
|
||||
InvokeObjectPostAlterHook(ProcedureRelationId, funcOid, 0);
|
||||
|
||||
heap_close(rel, NoLock);
|
||||
heap_freetuple(tup);
|
||||
|
||||
|
Reference in New Issue
Block a user