postgresql_16:7.1.9.1 Description
PostgreSQL 16 > Reference > SQL Commands > ALTER EXTENSION > Description
ALTER EXTENSION changes the definition of an installed extension. There are several subforms: UPDATE This form updates the extension to a newer version. The extension must supply a suitable update script (or series of scripts) that can modify the currently-installed version into the requested version. SET SCHEMA This form moves the extension's objects into another schema. The extension has to be *relocatable* for this command to succeed. ADD *member_object* This form adds an existing object to the extension. This is mainly useful in extension update scripts. The object will subsequently be treated as a member of the extension; notably, it can only be dropped by dropping the extension. DROP *member_object* This form removes a member object from the extension. This is mainly useful in extension update scripts. The object is not dropped, only disassociated from the extension. See (see postgresql_16:6.1.17) for more information about these operations.
You must own the extension to use ALTER EXTENSION. The ADD/DROP forms require ownership of the added/dropped object as well.