Pgperf
source
.all_locks()
List all current locks in your database
.bloat()
Estimation of table 'bloat' space allocated to a relation that is full of dead tuples, that has yet to be reclaimed.