How To Check Locks In Postgresql