Skip to content

Commit a432e27

Browse files
committed
Add post-creation hook for extensions, consistent with other object types.
KaiGai Kohei
1 parent 7b630e7 commit a432e27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/commands/extension.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "catalog/dependency.h"
3333
#include "catalog/indexing.h"
3434
#include "catalog/namespace.h"
35+
#include "catalog/objectaccess.h"
3536
#include "catalog/pg_depend.h"
3637
#include "catalog/pg_extension.h"
3738
#include "catalog/pg_namespace.h"
@@ -1546,6 +1547,9 @@ InsertExtensionTuple(const char *extName, Oid extOwner,
15461547

15471548
recordDependencyOn(&myself, &otherext, DEPENDENCY_NORMAL);
15481549
}
1550+
/* Post creation hook for new extension */
1551+
InvokeObjectAccessHook(OAT_POST_CREATE,
1552+
ExtensionRelationId, extensionOid, 0);
15491553

15501554
return extensionOid;
15511555
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy