I was checking the documentation for AWS RDS (along with the performance insights for my DB) and I saw that lock:transactionid and lock:tuple have 2 separate descriptions. However it's not clear to me what the difference is because rows and tuples mean the same thing in the DB. So why does RDS have 2 separate ways to describe the same thing?
Might be too late for this to be relevant for the OP but for anyone googling this it is to do with transaction vs tuple context.
"Although tuples are a lockable type of object, information about row-level locks is stored on disk, not in memory, and therefore row-level locks normally do not appear in this view. If a process is waiting for a row-level lock, it will usually appear in the view as waiting for the permanent transaction ID of the current holder of that row lock."
from https://www.postgresql.org/docs/17/view-pg-locks.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With