How to analyze heavyweight locks, part 1
Heavyweight locks, both relation- and row-level, are acquired by a query and always held until the end of the transaction this query belongs to.
Heavyweight locks, both relation- and row-level, are acquired by a query and always held until the end of the transaction this query belongs to.
Assume we have a 10 TiB table created many years ago, partitioned or not, like this one:
Here is how you can quickly check data type and size of a value, without looking in the documentation.