跳转至

gtm_locks

gtm_locks

gtm_locks视图提供了有关在SeaboxMPP数据库中gtm全局锁的信息的访问。

类型 参考 描述
locktype text 可锁对象的类型:relation, extend, page, tuple, transactionid, object, userlock, 或 advisory
database oid pg_database.oid 该对象存在的数据库的Oid,如果该对象是共享对象,则为0。 如果对象是事务ID,则为空。
relation oid pg_class.oid 关系的OID,如果对象不是关系或者关系的一部分,则为0。
page integer 关系中的页码,如果对象不是元组或者关系页则为0。
tuple smallint 页中的元组号,如果该对象不是个元组则为0。
pid integer 持有或等待该锁的事务进程的进程Id。
mode text 该进程所持有或期望的锁模式的名称
granted boolean 锁被持有为真,锁为等待为假
sc_dbindex_id integer SeaboxMPP持有该锁的executor的id(contentid)。

Table 1. pg_catalog.gtm_locks