Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita432e27

Browse files
committed
Add post-creation hook for extensions, consistent with other object types.
KaiGai Kohei
1 parent7b630e7 commita432e27

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
returnextensionOid;
15511555
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp