Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Before dropping extensions in an Azure Database for PostgreSQL flexible server instance, you must allowlist them.
Steps to drop extensions
Allowlist the extension.
The user that drops the extensions must be a member of the
azure_pg_adminrole.Run the DROP EXTENSION command to drop or uninstall a particular extension. This command drops the objects packaged in the extension from your database.
DROP EXTENSION <extension>;
Some extensions might distribute objects required by other extension. It's the case, for example, of the
vectorextension, in which thepg_diskannextension depends. To drop such extensions, you can proceed in two ways:- Allowlist and run
DROP EXTENSIONon all the extensions that depend on the one that you're trying to drop first. Then, allowlist and runDROP EXTENSIONon the extension on which other extensions depended.
DROP EXTENSION <dependent_extension>; DROP EXTENSION <depending_extension>;- Allowlist and run
DROP EXTENSIONon the extension that you want to drop, that other extensions depend on, but add theCASCADEclause, so that it automatically drops all extensions on which it depends.
DROP EXTENSION <depending_extension> CASCADE;- Allowlist and run