cyrilgdn / terraform-provider-postgresql

Terraform PostgreSQL provider
https://www.terraform.io/docs/providers/postgresql/
Mozilla Public License 2.0
356 stars 181 forks source link

idle_in_transaction_session_timeout and statement_timeout cannot be set to 0 #353

Open Anton-Shutik opened 9 months ago

Anton-Shutik commented 9 months ago

Parameters idle_in_transaction_session_timeout and statement_timeout cannot be set to 0, they just reset to default instead

Terraform Version

Terraform v1.3.9 on darwin_arm64

Affected Resource(s)

Please list the resources as a list, for example:

Terraform Configuration Files

resource "postgresql_role" "roles" {
  name     = my_user
  idle_in_transaction_session_timeout = 0
}

Expected Behavior

idle_in_transaction_session_timeout should be set to 0

Actual Behavior

idle_in_transaction_session_timeout is reset to default value.

Steps to Reproduce

  1. terraform apply