数据仓库服务 GAUSSDB(DWS)-恢复控制函数:pg_data_sync_from_dummy_completion()

时间:2024-04-18 16:25:02

pg_data_sync_from_dummy_completion()

描述:显示当前DN上Failover过程中数据页文件同步的进度信息。

返回值类型:record

示例:

1
2
3
4
5
SELECT * FROM pg_data_sync_from_dummy_completion();
 start_index | current_index | total_index | sync_percent
-------------+---------------+-------------+--------------
           0 |             0 |           0 | 100%
(1 row)

函数返回信息如下:

表2 pg_data_sync_from_dummy_completion()字段

名称

类型

描述

start_index

integer

数据页文件同步的起始编号

current_index

integer

数据页文件同步的当前编号

total_index

integer

数据页文件同步的最大编号

sync_percent

integer

数据页文件当前完成的百分比

support.huaweicloud.com/sqlreference-830-dws/dws_06_0301.html