当前位置:网站首页>GBase 8c 会话信息函数(五)
GBase 8c 会话信息函数(五)
2022-07-24 00:16:00 【大壮十二】
pg_conf_load_time()
描述:配置加载时间。pg_conf_load_time返回最后加载服务器配置文件的时间戳。
返回值类型:timestamp with time zone
示例:
gbase=# SELECT pg_conf_load_time();
pg_conf_load_time
-------------------------------
2022-05-05 14:33:02.197289+08
(1 row)pg_my_temp_schema()
描述:会话的临时模式的OID,不存在则为0。
返回值类型:oid
示例:
gbase=# SELECT pg_my_temp_schema();
pg_my_temp_schema
-------------------
0
(1 row)备注:pg_my_temp_schema返回当前会话中临时模式的OID,如果不存在(没有创建临时表)的话则返回0。如果给定的OID是其它会话中临时模式的OID,pg_is_other_temp_schema则返回true。
pg_is_other_temp_schema(oid)
描述:是否为另一个会话的临时模式。
返回值类型:Boolean
示例:
gbase=# SELECT pg_is_other_temp_schema(25356);
pg_is_other_temp_schema
-------------------------
f
(1 row)pg_listening_channels()
描述:会话正在侦听的信道名称。
返回值类型:setof text
示例:
gbase=# SELECT pg_listening_channels();
pg_listening_channels
-----------------------
(0 rows)备注:pg_listening_channels返回当前会话正在侦听的一组信道名称。
pg_postmaster_start_time()
描述:服务器启动时间。pg_postmaster_start_time返回服务器启动时的timestamp with time zone。
返回值类型:timestamp with time zone
示例:
gbase=# SELECT pg_postmaster_start_time();
pg_postmaster_start_time
-------------------------------
2022-05-05 11:59:14.394307+08
(1 row)pg_get_ruledef(rule_oid)
描述:获取规则的CREATE RULE命令。
返回值类型:text
示例:
gbase=# select * from pg_get_ruledef(24828);
pg_get_ruledef
----------------
-
(1 row)边栏推荐
- Automatic escape processing in JMeter
- Pushgateway+prometheus+grafana build Flink real-time monitoring
- Redis 集群hash分片算法(槽位定位算法)
- Problems encountered in pytorch
- IIS deployment.Netcore
- iNFTnews | 呵护“雪山精灵”,42VERSE“数字生态保护”公益项目即将盛启
- 文本和图片的绘制、数据存储、localStorage、sessionStorage、cookie三者的区别
- 投资的物质回报
- mysql数据库基础
- kubernetes error
猜你喜欢

高数_第2章多元函数微分学__偏导数的几何应用_空间曲线的切线与法平面

Intel Intel realsense realistic depth camera self calibration operation steps explanation D400 series is applicable

【Android Kotlin】Property、Getter 和 Setter

Mobile terminal H5 - a lifeline timeline

webrtc 1对1 -基本架构与目录

What are blue-green deployment, Canary release and a/b test

力扣刷题训练之超简单

Automatic escape processing in JMeter

Space shooting lesson 07: add graphics

Lac automatic dialing experiment of L2TP
随机推荐
IIS deployment.Netcore
Try new methods
Material return on investment
[opencv] - when the parameter type of cv.threshold() function is a number, what does it mean
docker 拉取redis镜像 并运行
Redis数据结构
在原生终端实现类似 rz、sz 上传下载文件与目录的功能
Redis主从同步机制
Nacos
今天在家里补觉
Pytest interface automation test framework | summary
Splicing of.Net distribution with outlook mail format and table
Solution to the second game of 2022 Niuke multi school league
pthread 的 joinable 和 detached
Multi knapsack explanation of dynamic programming knapsack problem
加密技术应用
盘点为下个牛市做准备的10个新Layer1
Application of encryption technology
My meeting of OA project (query)
YOLOv1