当前位置:网站首页>GBase 8c 会话信息函数(四)
GBase 8c 会话信息函数(四)
2022-07-24 00:16:00 【大壮十二】
tablespace_oid_name()
描述: 根据表空间oid,查找表空间名称。
返回值类型:text
示例:
gbase=# select tablespace_oid_name(1663);
tablespace_oid_name
---------------------
pg_default
(1 row)inet_client_addr()
描述:连接的远端地址。inet_client_addr返回当前客户端的IP地址。
此函数只有在远程连接模式下有效。
返回值类型:inet
示例:
gbase=# SELECT inet_client_addr();
inet_client_addr
------------------
10.10.0.50
(1 row)inet_client_port()
描述:连接的远端端口。inet_client_port返回当前客户端的端口号。
此函数只有在远程连接模式下有效。
返回值类型:int
示例:
gbase=# SELECT inet_client_port();
inet_client_port
------------------
33143
(1 row)inet_server_addr()
描述:连接的本地地址。inet_server_addr返回服务器接收当前连接用的IP地址。
此函数只有在远程连接模式下有效。
返回值类型:inet
示例:
gbase=# SELECT inet_server_addr();
inet_server_addr
------------------
10.10.0.13
(1 row)inet_server_port()
描述:连接的本地端口。inet_server_port返回接收当前连接的端口号。如果是通过Unix-domain socket连接的,则所有这些函数都返回NULL。
此函数只有在远程连接模式下有效。
返回值类型:int
示例:
gbase=# SELECT inet_server_port();
inet_server_port
------------------
8000
(1 row)pg_backend_pid()
描述:当前会话连接的服务进程的进程ID。
返回值类型:int
示例:
gbase=# SELECT pg_backend_pid();
pg_backend_pid
-----------------
140573668599552
(1 row)边栏推荐
- July 23, 2022 - mapper file description
- Linked list - 707. Design linked list
- 子矩阵的和
- Jenkins uses sonarqube to build pipeline code review project
- 合宙ESP32C3基于Arduino IDE框架下配置分区表
- [wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)
- docker搭建sonarqube,mysql5.7环境
- As a programmer, is there anything you want to say to the newcomer?
- 腾讯将关闭“幻核”,数字藏品领域发展是否面临阻力?
- kubernetes error
猜你喜欢

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

English语法_指示代词 -such / the same

Tencent will close the "magic core". Is there any resistance to the development of digital collections?

Multi knapsack explanation of dynamic programming knapsack problem

L2TP的LAC自动拨号实验

Inftnews | protect the "Snow Mountain Spirit", and the 42verse "digital ecological protection" public welfare project is about to start

Space shooting lesson 08: improved collision

The differences between text and image drawing, data storage, localstorage, sessionstorage, and cookies

力扣刷题训练之超简单

太空射击第08课: 改进的碰撞
随机推荐
Multi table query_ External connection
Happiness of progress and growth
IIS deployment.Netcore
Automatic escape processing in JMeter
Redis主从同步机制
加密技术应用
腾讯将关闭“幻核”,数字藏品领域发展是否面临阻力?
OA项目之我的会议(查询)
【译】Go RPC 入门:Hello World
Y75. Chapter IV Prometheus factory monitoring system and practice -- Prometheus alarm setting (VI)
Windows software: how to install mysql5.7 and configure environment variables
Deep learning 9 feedforward neural network 2: realize feedforward neural network and model optimization
Adaptation scheme of large screen visualization
docker 拉取redis镜像 并运行
Scheme for importing XMIND use cases into tapd (with code)
太空射击第08课: 改进的碰撞
总结谋划明方向 凝心聚力开新局——和数软件对口援疆项目显成效
Pipeline pipeline project is built by declarative and jenkinsfile under Jenkins
Webrtc 1 to 1 - basic architecture and directory
Intel Intel realsense realistic depth camera self calibration operation steps explanation D400 series is applicable