MaterializeInc / terraform-provider-materialize

A Terraform provider for Materialize
https://registry.terraform.io/providers/MaterializeInc/materialize
Mozilla Public License 2.0
11 stars 8 forks source link

Set transaction isolation to strict for new connections #656

Closed bobbyiliev closed 1 month ago

bobbyiliev commented 1 month ago

Feature request

Recently @matthelm observed an unexpected behaviour when creating new resources.

The problem was caused when the transaction isolation in Materialize was set to serializable causing the read function to intermittently fail right after a create statement is executed.

The suggested fix is to explicitly run SET transaction_isolation = 'strict serializable' whenever we create a new connection in Terraform.