There is a possibility for deadlock when one query queries sys.tables for the first time in that client's session (instantiating the tmp._tables temporary table), and another client updating a table that happens to have an id that has the same modulo 64 as tmp._tables.
I.e., this is pretty specific

**To Reproduce**
This is hard to reproduce since it depends on exact timing and just the right table ids.

**Expected behavior**
No deadlock, obviously.

**Screenshots**
If applicable, add screenshots to help explain your problem.


deadlock, causing new connections to hang indefinitely
This is a GitHub Issue
repo:MonetDB
owner:MonetDB
Title : deadlock, causing new connections to hang indefinitely
Issue date:

--- start body ---
There is a possibility for deadlock when one query queries sys.tables for the first time in that client's session (instantiating the tmp._tables temporary table), and another client updating a table that happens to have an id that has the same modulo 64 as tmp._tables.
I.e., this is pretty specific

**To Reproduce**
This is hard to reproduce since it depends on exact timing and just the right table ids.

**Expected behavior**
No deadlock, obviously.

**Screenshots**
If applicable, add screenshots to help explain your problem.


--- end body ---
