From: Robert Haas Date: Thu, 24 Mar 2011 22:44:49 +0000 (-0400) Subject: Add post-creation hook for extensions, consistent with other object types. X-Git-Tag: REL9_1_ALPHA5~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a432e2783bb69fb68461ed2bcc460e2876fcc68d;p=postgresql Add post-creation hook for extensions, consistent with other object types. KaiGai Kohei --- diff --git a/src/backend/commands/extension.c b/src/backend/commands/extension.c index b1673e6549..7c3e8107de 100644 --- a/src/backend/commands/extension.c +++ b/src/backend/commands/extension.c @@ -32,6 +32,7 @@ #include "catalog/dependency.h" #include "catalog/indexing.h" #include "catalog/namespace.h" +#include "catalog/objectaccess.h" #include "catalog/pg_depend.h" #include "catalog/pg_extension.h" #include "catalog/pg_namespace.h" @@ -1546,6 +1547,9 @@ InsertExtensionTuple(const char *extName, Oid extOwner, recordDependencyOn(&myself, &otherext, DEPENDENCY_NORMAL); } + /* Post creation hook for new extension */ + InvokeObjectAccessHook(OAT_POST_CREATE, + ExtensionRelationId, extensionOid, 0); return extensionOid; }