Skip to content

Commit 0c1175f

Browse files
committed
set default postgres connection limit
1 parent 1f036e7 commit 0c1175f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

builtin/providers/postgresql/resource_postgresql_database.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func resourcePostgreSQLDatabase() *schema.Resource {
8787
Type: schema.TypeInt,
8888
Optional: true,
8989
Computed: true,
90+
Default: -1,
9091
Description: "How many concurrent connections can be made to this database",
9192
ValidateFunc: validateConnLimit,
9293
},

builtin/providers/postgresql/resource_postgresql_role.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func resourcePostgreSQLRole() *schema.Resource {
7777
roleConnLimitAttr: {
7878
Type: schema.TypeInt,
7979
Optional: true,
80+
Default: -1,
8081
Computed: true,
8182
Description: "How many concurrent connections can be made with this role",
8283
ValidateFunc: validateConnLimit,

0 commit comments

Comments
 (0)