diff --git a/builtin/providers/postgresql/resource_postgresql_database.go b/builtin/providers/postgresql/resource_postgresql_database.go index 5602857667..48d05cfd4c 100644 --- a/builtin/providers/postgresql/resource_postgresql_database.go +++ b/builtin/providers/postgresql/resource_postgresql_database.go @@ -169,8 +169,11 @@ func resourcePostgreSQLDatabaseCreate(d *schema.ResourceData, meta interface{}) continue } - val := v.(bool) - createOpts = append(createOpts, fmt.Sprintf("%s=%t", opt.sqlKey, val)) + valStr := "FALSE" + if val := v.(bool); val { + valStr = "TRUE" + } + createOpts = append(createOpts, fmt.Sprintf("%s=%s", opt.sqlKey, valStr)) } dbName := d.Get("name").(string)