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

Fix getting stuck on refreshing postgresql grant #351

Closed giner closed 4 months ago

giner commented 9 months ago

This change fixes terraform refresh getting stuck forever on postgresql_grant schema when provider connection database is the same as the one we are trying to read schema information from. Until now the issue could be reproduced only on RDS (PostgreSQL 14.7). Fixed by explicitly finishing one transaction before starting a new one.

Fixes #335

pagalba-com commented 9 months ago

@cyrilgdn please approve this MR! Its impossible to work on aws prod without this.

giner commented 8 months ago

@kylejohnson would you take a look at this fix please?

giner commented 8 months ago

@cyrilgdn

giner commented 4 months ago

@cyrilgdn, Does anything need to be done for v1.22.0 to hit the registry? It's not there yet.