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 creating extensions in an Azure HorizonDB cluster, add them to the allow list.
Steps to create extensions
If the extension requires it, add its library to
shared_preload_librariesand complete any required restart before creating the extension.To create untrusted extensions, you must be a member of the
azure_pg_adminrole. Any user withCREATEprivilege can create any trusted extension listed inazure.extensions. You can retrieve this list by runningSHOW azure.extensions;.Run the CREATE EXTENSION command to create or install a particular extension. This command loads the packaged objects into your database.
CREATE EXTENSION <extension>;Some extensions require other extensions to be created first, because they depend on objects distributed by those other extensions. It's the case, for example, of the
pg_diskannextension, which has dependencies on thevectorextension. To install such extensions, you can proceed in two ways:- Allow extensions in Azure HorizonDB and run
CREATE EXTENSIONfirst on the extension on which it depends. Then, add the dependent extension to the allow list and runCREATE EXTENSIONon it.
CREATE EXTENSION <depending_extension>; CREATE EXTENSION <dependent_extension>;- Allow extensions in Azure HorizonDB and run
CREATE EXTENSIONon the dependent extension only, but add theCASCADEclause, so that it automatically creates all extensions on which it depends.
CREATE EXTENSION <dependent_extension> CASCADE;- Allow extensions in Azure HorizonDB and run
Note
Third-party extensions offered for Azure HorizonDB are open-source licensed code. Microsoft doesn't offer any third-party extensions or extension versions with premium or proprietary licensing models.
Your Azure HorizonDB instance supports a subset of all existing PostgreSQL extensions, as listed in supported extensions by name or in supported extensions by version of PostgreSQL.
SHOW azure.extensions; lists the extensions currently allowlisted by your
configuration. It isn't the complete supported-extension catalog and doesn't
show which extensions are installed in the connected database. Use the linked
catalogs to check supported extensions and pg_extension to inspect installed
extensions.
You can't bring your own extensions into an Azure HorizonDB instance. Extensions not included in the lists referred to earlier aren't supported on your Azure HorizonDB instance.