当前位置:网站首页>Gbase 8C backup control function (II)
Gbase 8C backup control function (II)
2022-07-28 01:55:00 【Dazhuang twelve】
pg_start_backup(label text [, fast boolean ])
describe : Start online backup .( Administrator role or replicated role is required )
return type :text
remarks :pg_start_backup Accept a user-defined backup label ( Usually, this is the name of the location where the backup dump file is stored ). This function is directed to GBase 8c Write a backup label file to the data directory of , Then return the starting position of the backed up transaction log in the form of text .
gbase=# SELECT pg_start_backup('label_goes_here');
pg_start_backup
-----------------
0/20000028
(1 row)
pg_stop_backup()
describe : Complete the online backup .( Administrator role or replicated role is required )
return type :text
remarks :pg_stop_backup Delete pg_start_backup Created label file , And create a backup history file in the transaction log archive . This historical file contains giving pg_start_backup The label of 、 The starting and ending positions of the backup transaction log 、 Start and end time of backup . The return value is the end position of the backup transaction log . After calculating the stop position , The insertion point of the current transaction log will automatically advance to the next transaction log file , such , The finished transaction log file can be archived immediately to complete the backup .
pg_switch_xlog()
describe : Switch to a new transaction log file .( Administrator role is required )
return type :text
remarks :pg_switch_xlog Move to the next transaction log file , To allow the current log file to be archived ( Assume continuous archiving ). The return value is the end position of the transaction log of the just completed transaction log file +1. If there is no active transaction log since the last transaction log switch , be pg_switch_xlog Do nothing , Directly return to the starting position of the current transaction log file .
边栏推荐
猜你喜欢

网易云仿写

Zhi Huijun, Huawei's "genius youth", has made a new work, building a "customized" smart keyboard from scratch

Leetcode high frequency question 128. the longest continuous sequence, which is often tested in interviews with Internet companies

白质脑功能网络图论分析:抑郁症分类和预测的神经标记

基于 Flink CDC 实现海量数据的实时同步和转换

【面试:并发篇28:volatile】有序性

抓包精灵NetCapture APP抓包教程《齐全》

unreal ue4.27 switchboard 移植出引擎流程

Content bypass sharing

Digital economy is the core of future economic development
随机推荐
C#学习笔记----C#连接MySQL数据库
简单为美-编程思路
递归的使用:1.将平铺数组转为树 2.将树转化为平铺数组
unreal ue4.27 switchboard 移植出引擎流程
白质脑功能网络图论分析:抑郁症分类和预测的神经标记
Custom events
GBase 8c 服务器信号函数
GBase 8c 快照同步函数
The story of amen
For newly installed PIP3, use no module named 'LSB_ Release 'problem
Real time synchronization and conversion of massive data based on Flink CDC
Niuke multi School Game 3 A, c+ weight segment tree
以“数字化渠道”撬动家用电器消费蓝海,经销商在线系统让企业生意更进一步
Mark's story
Summary: Prometheus storage
GBase 8c 事务ID和快照
抓包精灵NetCapture APP抓包教程《齐全》
总结:Prometheus存储
面试官:你确定Redis是单线程的进程吗?
GBase 8c 事务ID和快照(六)