You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for opening an issue. Please provide the following information:
Terraform Version
Terraform v1.2.8 on darwin_amd64
Affected Resource(s)
Please list the resources as a list, for example:
postgresql_database
postgresql_extension
postgreql_role
postgresql_grant
postgres_schema
postgresql_default_privileges
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Use the same connection.
Actual Behavior
We are using TF postgres provider to manager database, extension , schema, roles, grants , replication slot.
We have implemented Atlantis to automatically plan the TF changes.
For connecting to database, we use AWS VPC private Link + Network Load Balancer to talk to the database.
When checking the postgres logs , it seems like for every status check with TF configuration and actual values in DB, a new connection is established, this leads to slowness sometimes when we use VPC link.
Steps to Reproduce
Important Factoids
References
The text was updated successfully, but these errors were encountered:
I spent some time looking at this because our postgres resources plan/apply relatively slowly compared to other providers/resources (especially our MSSQL resources). With a small amount of resources (<20), it's not that big of a problem, but when you get to >50, it really starts adding up in the plan/apply time.
I do believe the lack of connection re-use is one of the primary reasons it is quite slow.
Hi there,
Thank you for opening an issue. Please provide the following information:
Terraform Version
Terraform v1.2.8 on darwin_amd64
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Use the same connection.
Actual Behavior
Steps to Reproduce
Important Factoids
References
The text was updated successfully, but these errors were encountered: