oushu_lock_status
oushu_lock_status#
The oushu_lock_status view provides access to information about the distributed locks held by all main node within OushuDB.The oushu_locks_status view is similar to pg_locks.pg_locks can only privide information about lock held by the node which execute pg_locks query.
Table 1. pg_catalog.oushu_lock_status
column |
type |
references |
description |
|---|---|---|---|
|
text |
Type of the lockable object: |
|
|
oid |
pg_database.oid |
OID of the database in which the object exists, zero if the object is a shared object, or NULL if the object is a transaction ID |
|
oid |
pg_class_internal.oid |
OID of the relation, or NULL if the object is not a relation or part of a relation |
|
integer |
Page number within the relation, or NULL if the object is not a tuple or relation page |
|
|
smallint |
Tuple number within the page, or NULL if the object is not a tuple |
|
|
xid |
ID of a transaction, or NULL if the object is not a transaction ID |
|
|
oid |
pg_class_internal.oid |
OID of the system catalog containing the object, or NULL if the object is not a general database object |
|
oid |
any OID column |
OID of the object within its system catalog, or NULL if the object is not a general database object |
|
smallint |
For a table column, this is the column number (the |
|
|
xid |
ID of the transaction that is holding or awaiting this lock |
|
|
Text |
Ip of main node that holding or awaiting this lock |
|
|
integer |
Process ID of the server process holding or awaiting this lock. NULL if the lock is held by a prepared transaction |
|
|
text |
Name of the lock mode held or desired by this process |
|
|
boolean |
True if lock is held, false if lock is awaited. |
|
|
integer |
The id of the client session associated with this lock. |
|
|
boolean |
Specifies whether the lock is held by a writer process. |
|
|
integer |
The OushuDB segment id ( |