当前位置:网站首页>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)边栏推荐
- Pytest interface automated testing framework | common running parameters of pytest
- 子矩阵的和
- English语法_指示代词 - So
- Webrtc 1 to 1 - basic architecture and directory
- [speech synthesis] tensorflowtts Chinese text to speech
- Linked list - 206. Reverse linked list (this question is very important)
- Mobile terminal H5 - a lifeline timeline
- 二叉搜索树的简易实现及剖析
- Beijing University qingniaochangping Campus: how about the current situation of operation and maintenance employment? Are skills required?
- Delete all data of specified query criteria in Oracle
猜你喜欢

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

力扣刷题训练之超简单

加密技术应用

Splicing of.Net distribution with outlook mail format and table

Summarize the plan, clarify the direction, concentrate and start a new situation -- the Counterpart Assistance Project of hexu software has achieved remarkable results

文本和图片的绘制、数据存储、localStorage、sessionStorage、cookie三者的区别

QT create a background mask, pop up the child window, and the background of the parent window turns black and dark
C语言详解系列——函数的认识(2)如何使用函数实现交换两个整型变量的值

jenkins下使用声明式(Declarative)和Jenkinsfile的方式构建Pipeline流水线项目

Sentinel link mode flow control failure solution
随机推荐
作为一个程序员,有什么想对新人说的吗?
Sum of submatrix
Codeforces Round #807 (Div. 2)(A-D)
vulnhub wpwn: 1
蓝绿部署、金丝雀发布、A/B测试是什么
I like investing
Space shooting lesson 07: add graphics
L2TP的LAC自动拨号实验
[Android kotlin] property, getter and setter
Mobile terminal H5 - a lifeline timeline
As a programmer, is there anything you want to say to the newcomer?
Multi knapsack explanation of dynamic programming knapsack problem
Y75. Chapter IV Prometheus factory monitoring system and practice -- Prometheus alarm setting (VI)
[wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)
NGFW的Portal认证实验
【译】Go RPC 入门:Hello World
今天在家里补觉
.NET下发同Outlook邮件格式以及表格的拼接
The world's smallest material ranking, Lingzi, Xianzi, quark
What are blue-green deployment, Canary release and a/b test