Skip to content

Too much parrallelism creates issues with Grant: tuple concurrently updated #126

@awoimbee

Description

@awoimbee

I'm using my pulumi to configure a local postgreSQL instance, it's really fast !
Maybe it's a bit too fast. I get error: could not execute revoke query: pq: tuple concurrently updated.
To fix the issue, I need to run pulumi with low parallelism (e.g. pulumi up -p 2).

Steps to reproduce

My stack is quite complex, it seems like is happens when it creates multiple Grant (one for a database, another for a schema, ...) to one Role. (to improve)

Expected: everything works
Actual: error is created, pulumi stops creating resources

Environment

  • postgreSQL: latest version, in docker
  • CPU: 8 cores, 16 threads (R7 4800H)
  • pulumi: v3.28.0
  • @pulumi/postgresql: 3.4.0

=> upstream issue: cyrilgdn/terraform-provider-postgresql#178

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSome behavior is incorrect or out of specresolution/fixedThis issue was fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions