The postgresql_extension resource creates and manages an extension on a PostgreSQL server.
postgresql_extension
resource "postgresql_extension" "my_extension" { name = "pg_trgm" }
name
schema
version