Create YSQL extensions in Yugabyte Cloud
Extend the functionality of your cluster using PostgreSQL extensions. YugabyteDB comes bundled with a number of extensions that are tested to work with YSQL. For a list of bundled extensions, refer to Pre-bundled extensions.
Loading extensions
Before using an extension, you must load it in the database using the CREATE EXTENSION command. For example:
CREATE EXTENSION fuzzystrmatch;
Required privileges
In Yugabyte Cloud, extensions can only be loaded by users that are a member of the yb_extension
role. All yb_superuser
users, including the default admin user, are members of yb_extension
.
Use the GRANT
statement to assign the role to users. For example, to grant the yb_extension
role to user
, use the following command:
yugabyte=# GRANT yb_extension TO user;
For more information on roles in Yugabyte Cloud, refer to Database authorization in Yugabyte Cloud clusters.
Request support for a new extension
You cannot install new extensions in Yugabyte Cloud.
If you need a database extension that is not bundled with YugabyteDB added to a cluster, contact Yugabyte Support with the names of the cluster and extension, or reach out on Slack.