返回首页

gbase数据、南大通用产品文档:GBase8a

更新日期:2024年09月11日

GBase 8a MPP Cluster 其它语句.............................. 1105

db2 数据库系统中创建如下表及数据:
CREATE DATABASE test
connect to test
DROP TABLE t1
CREATE TABLE t1(i int,j bigint,c char(20),v varchar(255))
INSERT INTO t1 VALUES(12,34,'ajhsa','7shuusa8us')
INSERT INTO t1(i) VALUES(89)
INSERT INTO t1 VALUES(0,90,'sniuda','djkjkdsd')
INSERT INTO t1 VALUES(109,0,' ',' ')
INSERT INTO t1 VALUES(850266,9055655988595,'iu92uijw9i218uiw9w','wjijs')
INSERT INTO t1(i,c,v) VALUES(-19982921,'s','abc')

PG_STAT_REPLICATION 视图用于描述日志同步状态信息,
例如发起端发送日志位置,
接收端接收日志位置等。
名称
类型
描述
pid
bigint
线程的PID。
usesysid
oid
用户系统ID。
usename
name
用户名。
application_name
text
程序名称。
client_addr
inet
客户端地址。
client_hostname
text
客户端名。

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
903
名称
类型
描述
client_port
integer
客户端端口。
backend_start
timestamp with time z
one
程序启动时间。
state
text
日志复制的状态:
追赶状态。
一致的流状态。
sender_sent_location
text
发送端发送日志位置。
receiver_write_location
text
接收端write 日志位置。
receiver_flush_location
text
接收端flush 日志位置。
receiver_replay_location
text
接收端replay 日志位置。
sync_priority
integer
同步复制的优先级(0 表示异步)。
sync_state
text
同步状态:
异步复制。
同步复制。
潜在同步者。