当前位置:网站首页>GBase 8c 备份控制函数(三)
GBase 8c 备份控制函数(三)
2022-07-27 23:55:00 【大壮十二】
pg_xlogfile_name(location text)
描述:将事务日志的位置字符串转换为文件名。
返回值类型:text
备注:pg_xlogfile_name仅抽取事务日志文件名称。如果给定的事务日志位置恰好位于事务日志文件的交界上,这两个函数都返回前一个事务日志文件的名称。这对于管理事务日志归档来说是非常有利的,因为前一个文件是当前最后一个需要归档的文件。
pg_xlogfile_name_offset(location text)
描述:将事务日志的位置字符串转换为文件名并返回在文件中的字节偏移量。
返回值类型:text,integer
备注:可以使用pg_xlogfile_name_offset从前述函数的返回结果中抽取相应的事务日志文件名称和字节偏移量。例如:
gbase=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
NOTICE: WAL archiving is not enabled; you must ensure that all required WAL segments are copied through other means to complete the backup
file_name | file_offset
--------------------------+-------------
000000010000000000000020 | 3616
(1 row)
pg_xlog_location_diff(location text, location text)
描述:计算两个事务日志位置之间在字节上的区别。
返回值类型:numeric
pg_cbm_tracked_location()
描述:用于查询cbm解析到的lsn位置。
返回值类型:text
pg_cbm_get_merged_file(startLSNArg text, endLSNArg text)
描述:用于将指定lsn范围之内的cbm文件合并成一个cbm文件,并返回合并完的cbm文件名。
返回值类型:text
备注:必须是系统管理员或运维管理员才能获取cbm合并文件。
边栏推荐
- Unity 通用红点系统
- Unity shader introduction Essentials - basic texture
- 了解Shader
- Article reproduction: super resolution network fsrcnn
- Count the number of given strings in a string
- 三舅的故事
- Develop plug-ins for the recording function of flutter
- qt 设置图标
- Software test interview question: think_ What is the function of time?
- 【taichi】在太极中画出规整的网格
猜你喜欢
随机推荐
马克的故事
Load balancing SLB
Software test interview question: what are the performance test indicators?
数商云供应链集采管理系统解决方案:集采系统管理模式,数字化管控企业物资
Leetcode 2351. the first letter that appears twice
Sort out SQL performance optimization and collect classics!
Introduction to routing strategy
三舅的故事
周报、月报有多折磨人?万能报表模板建议收藏!(附模板)
"Do you" want to be a test / development programmer? We strive to sprout
C语言·指针
面试官:你确定Redis是单线程的进程吗?
Can anime characters become "real people"? Paddegan helps you find the TA of "tear man"
Redis 5 种基本数据结构
Codeforces summer training weekly (7.14~7.20)
Linux系统彻底删除Mysql
LeetCode 2347. 最好的扑克手牌
Leetcode 2347. the best poker hand
JG data reset (WD)
牛客网刷题训练(三)









