26.3. Viewing Locks

Note: XCONLY: The following description applies only to Postgres-XC.

Please note that this section describes the task of individual Coordinator and Datanode.

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly. You can read PostgreSQL as Postgres-XC except for version number, which is specific to each product.

Another useful tool for monitoring database activity is the pg_locks system table. It allows the database administrator to view information about the outstanding locks in the lock manager. For example, this capability can be used to:

Details of the pg_locks view appear in Section 47.62. For more information on locking and managing concurrency with PostgreSQL, refer to Chapter 13.