set default postgres connection limit
This commit is contained in:
parent
1f036e7743
commit
0c1175f78b
|
@ -87,6 +87,7 @@ func resourcePostgreSQLDatabase() *schema.Resource {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
Default: -1,
|
||||||
Description: "How many concurrent connections can be made to this database",
|
Description: "How many concurrent connections can be made to this database",
|
||||||
ValidateFunc: validateConnLimit,
|
ValidateFunc: validateConnLimit,
|
||||||
},
|
},
|
||||||
|
|
|
@ -77,6 +77,7 @@ func resourcePostgreSQLRole() *schema.Resource {
|
||||||
roleConnLimitAttr: {
|
roleConnLimitAttr: {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
Default: -1,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Description: "How many concurrent connections can be made with this role",
|
Description: "How many concurrent connections can be made with this role",
|
||||||
ValidateFunc: validateConnLimit,
|
ValidateFunc: validateConnLimit,
|
||||||
|
|
Loading…
Reference in New Issue