summaryrefslogtreecommitdiff
path: root/src/include/commands/extension.h
diff options
context:
space:
mode:
authorTom Lane2011-02-09 16:55:32 +0000
committerTom Lane2011-02-09 16:56:37 +0000
commit5bc178b89f3ab93fb3845a941769c212f5eeaf1a (patch)
tree30f60f6497e97bf4c792bd581a3296aff5a6c5e5 /src/include/commands/extension.h
parent70802e0dbef0af4bf73ce25489b8be6e40eca2be (diff)
Implement "ALTER EXTENSION ADD object".
This is an essential component of making the extension feature usable; first because it's needed in the process of converting an existing installation containing "loose" objects of an old contrib module into the extension-based world, and second because we'll have to use it in pg_dump --binary-upgrade, as per recent discussion. Loosely based on part of Dimitri Fontaine's ALTER EXTENSION UPGRADE patch.
Diffstat (limited to 'src/include/commands/extension.h')
-rw-r--r--src/include/commands/extension.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/commands/extension.h b/src/include/commands/extension.h
index 10d08935a00..d0e94556f50 100644
--- a/src/include/commands/extension.h
+++ b/src/include/commands/extension.h
@@ -32,6 +32,8 @@ extern void CreateExtension(CreateExtensionStmt *stmt);
extern void RemoveExtensions(DropStmt *stmt);
extern void RemoveExtensionById(Oid extId);
+extern void ExecAlterExtensionAddStmt(AlterExtensionAddStmt *stmt);
+
extern Oid get_extension_oid(const char *extname, bool missing_ok);
extern char *get_extension_name(Oid ext_oid);