For locking, you should verify that your IX locks are working as intended. For example, you should ensure that:
- distinct tuples can be simultaneously locked exclusively by different transactions
- a tuple locked exclusively prevents a shared lock on the entire table.
For locking, you should verify that your IX locks are working as intended. For **example**, you should ensure that:
- distinct tuples can be simultaneously locked *exclusively* by different transactions
- a tuple locked exclusively prevents a *shared* lock on the entire table.
You can use `testingLocks.py` as the basis for your testing. The provided version will create three transactions that contend for the same lock (on the entire relation) and pause for differing amounts of time. Running `python3 testingLocks.py` should produce something like: