Skip to content

Conversation

@benoittgt
Copy link

@benoittgt benoittgt commented Nov 21, 2025

Replace database-wide locks with hash-based object locks. Enables parallel grant operations on different objects while preventing catalog conflicts.

Uses hashtext() for deterministic lock IDs like "grant:table:db.schema.table".

I used a small script to test conflicts: https://gist.github.com/benoittgt/8b9b9b305dc961308380be865a1ce66a

This is another extended version of #520

kylejohnson and others added 5 commits November 21, 2025 10:21
Replace database-wide locks with hash-based object locks. Enables parallel
grant operations on different objects while preventing catalog conflicts.

Uses hashtext() for deterministic lock IDs like "grant:table:db.schema.table".

Signed-off-by: Benoit Tigeot <[email protected]>
@benoittgt benoittgt marked this pull request as ready for review November 22, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants