» postgresql_extension

The postgresql_extension resource creates and manages an extension on a PostgreSQL server.

» Usage

resource "postgresql_extension" "my_extension" {
  name = "pg_trgm"

» Argument Reference

  • name - (Required) The name of the extension.
  • schema - (Optional) Sets the schema of an extension.
  • version - (Optional) Sets the version number of the extension.
  • database - (Optional) Which database to create the extension on. Defaults to provider database.