当前位置:网站首页>Gbase 8C recovery control function
Gbase 8C recovery control function
2022-07-28 01:55:00 【Dazhuang twelve】
The recovery information function provides information about the current standby state . These functions may be executed during recovery or during normal operation .
pg_is_in_recovery()
describe : If the recovery is still in progress, return true.
return type :bool
pg_last_xlog_receive_location()
describe : Get the location of the last received transaction log and synchronize it to disk through stream replication . When stream replication is in progress , The transaction log will continue to increment . If the recovery is complete , The last acquired WAL Records will be statically maintained and synchronized to disk during recovery . If stream replication is not available , Or it hasn't started yet , This function returns NULL.
return type :text
pg_last_xlog_replay_location()
describe : Get the replay location of the last transaction log during recovery . If the recovery is still in progress , The transaction log will continue to increment . If the recovery has been completed , Will remain last received during recovery WAL Recorded values . If the server starts normally without recovery , Then this function returns NULL.
return type :text
pg_last_xact_replay_timestamp()
describe : Get the timestamp of the replay of the last transaction upon recovery . This is for generating transaction commit or termination on the master node WAL Recorded time . If there is no transaction replay during recovery , Then this function returns NULL. If the recovery is still in progress , Then the transaction log will continue to increase . If the recovery is complete , Will remain last received during recovery WAL Recorded values . If the server starts normally without recovery , Then this function returns NULL.
return type :timestamp with time zone
The recovery control function controls the recovery process . These functions may only be executed during recovery .
pg_is_xlog_replay_paused()
describe : If you resume the pause, return true.
return type :bool
pg_xlog_replay_pause()
describe : Pause and resume immediately .
return type :void
pg_xlog_replay_resume()
describe : If the recovery is suspended , Then reboot .
return type :void
When resuming the pause , No database changes have occurred . If it is in hot standby , All new queries will see a consistent database snapshot , And there will be no further query conflicts , Until recovery continues .
If you cannot use stream replication , Then the suspended state will continue indefinitely . When stream replication is in progress , Will receive continuously WAL Record , It will eventually fill up the available disk space , This progress depends on the duration of the pause ,WAL Generated speed and available disk space .
边栏推荐
- 26. Abstraction and template ideas
- 嵌入式经典通信协议
- 【面试:并发篇28:volatile】有序性
- Flink 在 讯飞 AI 营销业务的实时数据分析实践
- Custom type: structure, enumeration, union
- Real time synchronization and conversion of massive data based on Flink CDC
- Docker builds MySQL master-slave locally
- Thinking about some things
- GBase 8c 事务ID和快照(六)
- Understand shader
猜你喜欢

leetcode: 515. 在每个树行中找最大值

ue4 unreal NDisplay插件 简易使用 三折幕 详细...

js 哪些情况不能用 JSON.parse 、JSON.stringify深拷贝及一个更好的深拷贝方法

Lambda expressions and stream streams

【taichi】在太极中画出规整的网格

Stock problems 5 times

Niuke net question brushing training (III)

Leetcode: 515. Find the maximum value in each tree row

HRD 1. 一个简单而靠谱的HRD的检测方法

网易云仿写
随机推荐
Lambda expressions and stream streams
周报、月报有多折磨人?万能报表模板建议收藏!(附模板)
26.抽象化和模板思想
2.2综合应用题-顺序表
Gbase 8C transaction ID and snapshot (IV)
物企大变局时代,SRM供应商采购系统助力企业打造物业采购数字化标杆
GBase 8c 备份控制函数(四)
GBase 8c 备份控制函数(三)
企业运维实践-使用Aliyun容器镜像服务对海外gcr、quay仓库镜像进行镜像拉取构建
Understand shader
Real time data warehouse: meituan's real-time data warehouse construction practice
Linux安装mysql8.0.29详细教程
GBase 8c 事务ID和快照(四)
基于 Flink CDC 实现海量数据的实时同步和转换
自定义类型:结构体,枚举,联合
Hcip day 15
领域驱动设计——术语篇
The story of amen
Article reproduction: super resolution network fsrcnn
Brushes and brushes