Resource

dcloud_db_extension

A PostgreSQL extension switched on in a database's own database (db_name). Only extensions of the platform's catalog can be enabled. One that needs a preload library (e.g. pg_cron) asks for a reboot first and fails here until the database has restarted. Destroying it drops the extension (refused while objects depend on it).

Example Usage

resource "dcloud_db_extension" "vector" {
  db_instance_id = dcloud_db_instance.main.id
  name           = "vector"
}

Schema

Required

  • db_instance_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.
  • name (String) The extension, e.g. pg_trgm, vector, postgis. Changing it replaces the resource.

Read-Only

  • id (String) The resource's id.
  • installed_version (String) The installed version.
  • schema (String) The schema it lives in.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_db_extension.vector <db-instance-id>/<extension-name>

Generated from the provider's schema.