第5章 系统目录参考-gp_distributed_log和gp_distributed_xacts

来源:互联网 发布:软件license开发 编辑:程序博客网 时间:2024/06/12 21:00

gp_distributed_log

The gp_distributed_iog view contains status information aboutdistributed transactions and their associated local transactions. A distributedtransaction is a transaction that involves modifying data on the segmentinstances. Greenplum's distributed transaction manager ensures that thesegments stay in synch. This view allows you to see the status of distributedtransactions.

gp_distributed_log视图包含有关分布式事务及其关联的本地事务的状态信息。 分布式事务是涉及修改段实例的数据的事务。 Greenplum的分布式事务管理器确保分段保持同步。 此视图允许您查看分布式事务的状态。

 

 

 

 

 

 

Table 12: pg_catalog.gp_distributed_log

column

type

references

描述

segment id

smallint

gp_segment_configuration.content

如果是segment则就是内容的ID,如果是master则ID是-1

 (无任何内容).

dbid

small_int

gp_segment_configuration.dbid

段示例的唯一ID

distributed_xid

xid

 

全局事务ID

distributed_id

text

 

为分布式事务分配的系统ID

status

text

 

分布式事务的状态(已提交或已中止)。

local transaction

xid

 

本地事务ID。


 


 

gp_distributed_xacts

The gp_distributed_xactsview containsinformation about Greenplum Database distributed transactions. A distributedtransaction is a transaction that involves modifying data on the segmentinstances. Greenplum's distributed transaction manager ensures that thesegments stay in synch. This view allows you to see the currently activesessions and their associated distributed transactions.

gp_distributed_xacts视图包含有关Greenplum数据库分布式事务的信息。 分布式事务是涉及修改段实例的数据的事务。 Greenplum的分布式事务管理器确保分段保持同步。 该视图允许您查看当前活动的会话及其关联的分布式事务。

 

 

Table 13: pg_catalog.gp_distributed_xacts

column

type

references

描述

distributed_xid

xid

 

Greenplum数据库阵列中分布式事务使用的事务ID。

distributed_id

text

 

分布式事务标识符。 它有2个部分 - 唯一的时间戳和分布式事务处理号码。

state

text

 

本次会话关于分布式事务的现状。

gp session id

int

 

与此事务关联的Greenplum数据库会话的ID号。

xmin distributed snapshot

xid

 

在此事务开始时,在所有正在执行的事务中找到的最小分布式事务号码。 它用于MVCC分布式快照目的。

原创粉丝点击