1/*-------------------------------------------------------------------------
4 * Extension management commands (create/drop extension).
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/commands/extension.h
12 *-------------------------------------------------------------------------
24 * creating_extension is only true while running a CREATE EXTENSION or ALTER
25 * EXTENSION UPDATE command. It instructs recordDependencyOnCurrentExtension()
26 * to register a dependency on the current pg_extension object for each SQL
27 * object created by an extension script. It also instructs performDeletion()
28 * to remove such dependencies without following them, so that extension
29 * scripts can drop member objects without having to explicitly dissociate
30 * them from the extension first.
41 Oid schemaOid,
bool relocatable,
const char *extVersion,
43 List *requiredExtensions);
58#endif /* EXTENSION_H */
Oid get_extension_schema(Oid ext_oid)
ObjectAddress InsertExtensionTuple(const char *extName, Oid extOwner, Oid schemaOid, bool relocatable, const char *extVersion, Datum extConfig, Datum extCondition, List *requiredExtensions)
ObjectAddress CreateExtension(ParseState *pstate, CreateExtensionStmt *stmt)
PGDLLIMPORT Oid CurrentExtensionObject
ObjectAddress AlterExtensionNamespace(const char *extensionName, const char *newschema, Oid *oldschema)
PGDLLIMPORT bool creating_extension
PGDLLIMPORT char * Extension_control_path
ObjectAddress ExecAlterExtensionStmt(ParseState *pstate, AlterExtensionStmt *stmt)
ObjectAddress ExecAlterExtensionContentsStmt(AlterExtensionContentsStmt *stmt, ObjectAddress *objAddr)
Oid get_extension_oid(const char *extname, bool missing_ok)
char * get_extension_name(Oid ext_oid)
void RemoveExtensionById(Oid extId)
bool extension_file_exists(const char *extensionName)