diff --git a/builtin/providers/postgresql/resource_postgresql_database.go b/builtin/providers/postgresql/resource_postgresql_database.go index ac5fa7760..d236b02d7 100644 --- a/builtin/providers/postgresql/resource_postgresql_database.go +++ b/builtin/providers/postgresql/resource_postgresql_database.go @@ -86,7 +86,7 @@ func resourcePostgreSQLDatabase() *schema.Resource { dbConnLimitAttr: { Type: schema.TypeInt, Optional: true, - Computed: true, + Default: -1, Description: "How many concurrent connections can be made to this database", ValidateFunc: validateConnLimit, }, diff --git a/builtin/providers/postgresql/resource_postgresql_role.go b/builtin/providers/postgresql/resource_postgresql_role.go index f501aafe4..3ac0b8a94 100644 --- a/builtin/providers/postgresql/resource_postgresql_role.go +++ b/builtin/providers/postgresql/resource_postgresql_role.go @@ -77,7 +77,7 @@ func resourcePostgreSQLRole() *schema.Resource { roleConnLimitAttr: { Type: schema.TypeInt, Optional: true, - Computed: true, + Default: -1, Description: "How many concurrent connections can be made with this role", ValidateFunc: validateConnLimit, },