RDBMS Information - PostgreSQL - How to detect locks in postgres db

Purpose

To know how to detect locks in postgres db

Applicable in CAST Version

ReleaseYes/No
8.3.x
8.2.x

Applicable RDBMS

RDBMSYes/No
Oracle Server
Microsoft SQL Server
CSS2
CSS1

Applicable Platform or

Platform or Yes/No

Details

To detect locks in PostgreSQL by using PGADMIN4:

  1. Connect to the server that you need to monitor

  2. Go to the locks tab

  3. On the lock window check any process that has it mode as “ExclusiveLock”.

If any process has this mode we can determine that there is a lock on it.

Notes/comments